-
Notifications
You must be signed in to change notification settings - Fork 0
[LFXV2-612] Add OpenTelemetry tracing support #10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -8,22 +8,32 @@ go 1.24.0 | |||||||||||||
| require ( | ||||||||||||||
| github.com/auth0/go-jwt-middleware/v2 v2.2.2 | ||||||||||||||
| github.com/nats-io/nats.go v1.37.0 | ||||||||||||||
| go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.64.0 | ||||||||||||||
| go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.36.0 | ||||||||||||||
| go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.35.0 | ||||||||||||||
| go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.35.0 | ||||||||||||||
|
Comment on lines
+12
to
+14
|
||||||||||||||
| go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.36.0 | |
| go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.35.0 | |
| go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.35.0 | |
| go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.39.0 | |
| go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc v1.39.0 | |
| go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp v1.39.0 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The OTel shutdown is deferred to use a new context.Background() instead of the ctx variable that was used for initialization. This means any shutdown timeout or cancellation in the main context won't be respected during shutdown. Consider creating a separate shutdown context with a timeout (e.g., context.WithTimeout) to allow graceful shutdown with a reasonable deadline.