Add Enhanced Jaeger Tracing Support (Updated) #15
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Enhanced Jaeger Tracing Implementation (Updated)
This PR adds comprehensive Jaeger tracing support to the GenAI application, providing detailed insights into request handling and model inference.
Key Changes
Enhanced Tracing Package:
AddAttribute
functionNew Tracing Middleware:
Model Inference Tracing:
TracedModelInference
struct to track model performanceMetrics Middleware:
Fixed Package Structure:
responseWriterWrapper
to a dedicated fileUsage
The tracing is automatically enabled when the
TRACING_ENABLED
environment variable is set totrue
and uses the Jaeger endpoint specified inOTLP_ENDPOINT
(defaults tojaeger:4318
).Benefits
This implementation follows OpenTelemetry best practices and is designed to work seamlessly with Jaeger UI.