Skip to content
This repository has been archived by the owner on Dec 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #40 from bancodobrasil/feat/enable-tracing
Browse files Browse the repository at this point in the history
fix: linter error
  • Loading branch information
eduardaguterres authored Aug 8, 2022
2 parents c743974 + 6afb583 commit 52ba2ee
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/telemetry.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"go.opentelemetry.io/otel/trace"
)

// GenerateSpanTracer ...
func GenerateSpanTracer(ctx context.Context, name string) func() {
tracer := telemetry.GetTracer(ctx)
_, span := tracer.Start(ctx, name, trace.WithSpanKind(trace.SpanKindInternal))
Expand Down

0 comments on commit 52ba2ee

Please sign in to comment.