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:
Natalia Goc 2024-05-17 10:39:32 +02:00
parent e9c3ae1a7b
commit e835318689

View File

@ -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)