docs: Add custom OpenTelemetry tracing example#1134
docs: Add custom OpenTelemetry tracing example#1134haroldfabla2-hue wants to merge 2 commits intolivekit:mainfrom
Conversation
- Wrap process.send in try-catch to handle channel close errors - Return false instead of throwing when channel is closed (expected during shutdown) - Log at debug level for expected closures, preserving for unexpected errors - Allows job completion flow to continue gracefully Fixes: livekit#1108, livekit#1080
This example demonstrates how to integrate LiveKit agents with custom OpenTelemetry tracing, allowing users to correlate LiveKit spans with their application's spans in a single trace tree. Addresses feature request in issue livekit#924
|
|
Alberto Farah seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account. You have signed the CLA already but the status is still pending? Let us recheck it. |
|
Thanks for the contribution! We generally keep examples in this repo focused on agent-specific functionality. This example is more about OpenTelemetry API usage, which is well covered by the OpenTelemetry JS documentation. Closing for now, but feel free to open an issue if you think there's an agent-specific tracing pattern we should document. |
This example demonstrates how to integrate LiveKit agents with custom OpenTelemetry tracing, allowing users to correlate LiveKit spans with their application's spans in a single trace tree.
Addresses feature request in issue #924