mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-02-03 13:11:53 +02:00
fix typo in othttp handler (#321)
This commit is contained in:
parent
ee87858c09
commit
64eaee8b0b
@ -130,7 +130,7 @@ func WithMessageEvents(events ...event) Option {
|
||||
func NewHandler(handler http.Handler, operation string, opts ...Option) http.Handler {
|
||||
h := Handler{handler: handler, operation: operation}
|
||||
defaultOpts := []Option{
|
||||
WithTracer(global.TraceProvider().GetTracer("go.opentelemtry.io/plugin/othttp")),
|
||||
WithTracer(global.TraceProvider().GetTracer("go.opentelemetry.io/plugin/othttp")),
|
||||
WithPropagator(prop.HTTPTraceContextPropagator{}),
|
||||
WithSpanOptions(trace.WithSpanKind(trace.SpanKindServer)),
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user