From e8353186898f031e319af892ecd9b50f4d933b09 Mon Sep 17 00:00:00 2001 From: Natalia Goc Date: Fri, 17 May 2024 10:39:32 +0200 Subject: [PATCH] fix incorrect API usage in the example `attr.SourceCodeLocation` already adds to callstack search depth to match its call site. --- example/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/main.go b/example/main.go index e4b4576..a6dda01 100644 --- a/example/main.go +++ b/example/main.go @@ -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)