You've already forked opentelemetry-go
mirror of
https://github.com/open-telemetry/opentelemetry-go.git
synced 2025-11-27 22:49:15 +02:00
committed by
Liz Fong-Jones
parent
f25c84f35f
commit
eb9fe13a77
@@ -65,7 +65,7 @@ func ExampleNewHandler() {
|
||||
case "":
|
||||
err = fmt.Errorf("expected /hello/:name in %q", s)
|
||||
default:
|
||||
trace.CurrentSpan(ctx).SetAttribute(core.Key("name").String(pp[1]))
|
||||
trace.CurrentSpan(ctx).SetAttributes(core.Key("name").String(pp[1]))
|
||||
}
|
||||
return pp[1], err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user