You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// Enable OpenTelemetry observability plugin.
// TODO: Consider to use component ID string as prefix for all the operations.
handler = otelhttp.NewHandler(
handler,
"",
otelhttp.WithTracerProvider(settings.TracerProvider),
otelhttp.WithMeterProvider(settings.MeterProvider),
otelhttp.WithPropagators(otel.GetTextMapPropagator()),
otelhttp.WithSpanNameFormatter(func(operation string, r *http.Request) string {
return r.URL.Path
}),
)
I have tried to resolve this TODO once before with #9123
The text was updated successfully, but these errors were encountered:
Hi @atoulme I would like to work on this issue. Is there any recommended readings or some files to look at? From what I understand, the span name formatter function can be used as a tool to set the prefix but I couldn't really understand how to get the component ID.
From confighttp.go:
I have tried to resolve this TODO once before with #9123
The text was updated successfully, but these errors were encountered: