The current endpoint accepts OTLP HTTP JSON. OTLP protobuf is not enabled yet. If you use the
OpenTelemetry Collector, set
encoding: json.When to Use OTel
Use this integration when:- your agent framework already emits OpenTelemetry spans
- you have an existing OpenTelemetry Collector
- you want vendor-neutral tracing alongside Sentrial classification
- you are migrating gradually from another tracing tool
Native SDK
Best for rich Sentrial sessions, prompt variants, costs, and wrappers.
Ingestion Options
Compare the native SDK and OpenTelemetry paths.
Endpoint
sessions:write and events:write scopes.
Collector Configuration
Forward traces from an OpenTelemetry Collector to Sentrial:3001, use:
Recommended Attributes
Add these attributes to the root span when possible:
Sentrial also maps common GenAI semantic convention attributes, including:
gen_ai.systemgen_ai.request.modelgen_ai.usage.input_tokensgen_ai.usage.output_tokensgen_ai.usage.total_tokensgen_ai.promptgen_ai.completion
Minimal OTLP JSON Example
Prompt Variants with OTel
OpenTelemetry ingestion does not choose prompt variants by itself. Route the variant first, then attach the assignment ID to your trace.assignment.assignmentId to your root span as sentrial.experiment.assignment_id. Sentrial will link the ingested trace to that variant and classify the run after ingest.
Classification
After Sentrial ingests a trace, it marks the session complete, stores span events, and runs the same signal classification pipeline used for SDK-created sessions.Next Steps
Sessions
Learn how sessions and events appear in Sentrial.
Custom Integration
Track custom agents with the native SDK.

