Environment
Set your environments during tracing for better debugging
Overview
The environment feature allows you to specify which environment your traces are coming from. This is useful for separating traces from different environments in "development", "staging", "production", or "testing".
Traces from component-level evals are automatically classified in the "testing" enviornment.
Configure Environment
You can configure the environment with the CONFIDENT_TRACE_ENVIRONMENT environment variable.
Alternatively, you can set the environment directly in code:
Python
TypeScript
main.py
The environment can be either "production", "staging", or "development", and helps you identify where your traces are coming from.