-
Notifications
You must be signed in to change notification settings - Fork 857
E52D
This is basically the chat client OpenTelemetry client copy/pasted/tweaked to compile. The otel spec doesn't have anything specific to this modality yet, so this is making best guesses on what things should be and also being minimal in what's tracked.
There was a problem hiding this comment.
This PR adds OpenTelemetry support for speech-to-text clients by implementing OpenTelemetry telemetry tracking that follows the OpenTelemetry Semantic Conventions for Generative AI systems. The implementation includes comprehensive activity tracing, metrics collection, and sensitive data handling options.
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| OpenTelemetrySpeechToTextClient.cs | Core implementation with activity tracing, metrics collection, and response handling for both streaming and non-streaming operations |
| OpenTelemetrySpeechToTextClientBuilderExtensions.cs | Extension methods to add OpenTelemetry support to the speech-to-text client builder pipeline |
| OpenTelemetrySpeechToTextClientTests.cs | Comprehensive test suite covering streaming/non-streaming scenarios and sensitive data configuration |
| SpeechToTextClientBuilder.cs | Documentation fixes changing "audio transcription" references to "speech-to-text" |
| LoggingSpeechToTextClientBuilderExtensions.cs | Documentation fix changing "audio transcription" to "speech-to-text" |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This is basically the chat client OpenTelemetry client copy/pasted/tweaked to compile. The otel spec doesn't have anything specific to this modality yet, so this is making best guesses on what things should be and also being minimal in what's tracked, effectively a pure subset of what chat client outputs.
Microsoft Reviewers: Open in CodeFlow