CozeloopExporter reports span data to the Cozeloop platform over OTLP (HTTP). Once connected, you can observe traces with Cozeloop’s trace feature or evaluate agents with its evaluation feature. Data is isolated by workspace (space).
When to use
You want to observe your agent’s traces on Cozeloop;
You want to analyze conversation quality and tool-usage effectiveness with Cozeloop’s evaluation capabilities;
You already have a Cozeloop workspace and access token.
CozeloopExporter carries its connection parameters in the config field of type CozeloopExporterConfig; when omitted, each field is read automatically from the corresponding environment variable.
Parameter
Type
Default
Description
config
CozeloopExporterConfig
Read from environment variables
Cozeloop connection and authentication config.
resource_attributes
dict
{}
Resource attributes attached to spans.
headers
dict
{}
Extra request headers; the exporter merges in cozeloop-workspace-id and authorization automatically.
Cozeloop connection config
config is a CozeloopExporterConfig; each field defaults from CozeloopConfig, with the following environment variables:
Creates a default workspace automatically when unset
Workspace ID for data isolation.
token
OBSERVABILITY_OPENTELEMETRY_COZELOOP_API_KEY
str
""
Access token; supports personal access tokens, OAuth access tokens, and service access tokens.
space_id is taken from the environment variable OBSERVABILITY_OPENTELEMETRY_COZELOOP_SERVICE_NAME; when unset, the exporter creates a default workspace automatically using token as the credential. After logging in to Cozeloop, the segment after space in the URL is the workspace ID.