Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions python/docs/src/user-guide/core-user-guide/framework/telemetry.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,24 @@ worker_runtime = GrpcWorkerAgentRuntime(tracer_provider=tracer_provider)

And that's it! Your application is now instrumented with open telemetry. You can now view your telemetry data in your telemetry backend.

### Using with Comet Opik

You can send AutoGen traces to [Comet Opik](https://www.comet.com/docs/opik/integrations/autogen) by configuring your OTLP exporter with your Opik project endpoint and headers.

```python
from opentelemetry.exporter.otlp.proto.http.trace_exporter import OTLPSpanExporter

processor = BatchSpanProcessor(
OTLPSpanExporter(
endpoint="<opik_otlp_endpoint>",
headers={"Authorization": "<opik_otlp_headers>"},
)
)
tracer_provider.add_span_processor(processor)
```

Get these values from your Opik project settings.

### Existing instrumentation

If you have open telemetry already set up in your application, you can pass the tracer provider to the runtime when creating it:
Expand Down