fix incorrect API usage in the example
`attr.SourceCodeLocation` already adds to callstack search depth to match its call site.
This commit is contained in:
parent
e9c3ae1a7b
commit
e835318689
@ -45,7 +45,7 @@ func main() {
|
||||
|
||||
span.AddEvent(
|
||||
"smthing is happening",
|
||||
attr.WithAttributes(attr.SeverityLevel(level.INFO), attr.SourceCodeLocation(1)),
|
||||
attr.WithAttributes(attr.SeverityLevel(level.INFO), attr.SourceCodeLocation(0)),
|
||||
)
|
||||
|
||||
err := Serv(ctx)
|
||||
|
Loading…
Reference in New Issue
Block a user