Sentrial SDK
Best for new integrations, agent sessions, tool calls, prompt variants, costs, and
Sentrial-specific workflows.
OpenTelemetry
Best when your agents already emit OTel spans or you need vendor-neutral collection through an
existing collector.
Which Path Should I Use?
Use the Sentrial SDK when you want the most complete Sentrial experience with minimal mapping:begin()andfinish()sessions- automatic tool and LLM wrappers
convo_idgrouping- production prompt variant routing with
getVariant() - automatic run classification after completion
- existing OTel SDKs or collectors
- GenAI semantic convention spans
- multi-vendor observability pipelines
- gradual migration from another tracing tool
You can use both. For example, call
getVariant() from the Sentrial SDK to route a prompt
variant, then attach the returned assignment ID to your OTel root span as
sentrial.experiment.assignment_id.Data Model Mapping
Recommendation
Start with the Sentrial SDK unless your application already has mature OpenTelemetry traces. Use OTel when you need interoperability — instrument with standard OTel GenAI semantic conventions and addgen_ai.conversation.id on the root span (the single Sentrial-specific extension) so multi-turn runs group into conversations. No sentrial.* attributes are required; they remain only as deprecated fallbacks.
Next Steps
Quickstart
Install the SDK and track your first agent run.
OpenTelemetry
Send OTLP HTTP traces (JSON or protobuf) to Sentrial.

