inital commit
This commit is contained in:
12
helpers.go
Normal file
12
helpers.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"go.opentelemetry.io/otel/trace"
|
||||
)
|
||||
|
||||
func FollowSpan(ctx context.Context, name string) (_ context.Context, span trace.Span) {
|
||||
ctx, span = tracer.Start(ctx, name)
|
||||
return ctx, span
|
||||
}
|
||||
Reference in New Issue
Block a user