Skip to content

Commit

Permalink
Update tracing code
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidS-ovm committed Sep 29, 2023
1 parent f3554e3 commit bbd353b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 9 deletions.
10 changes: 4 additions & 6 deletions sources/iam/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,8 @@ const (
instrumentationVersion = "0.0.1"
)

var (
tracer = otel.GetTracerProvider().Tracer(
instrumentationName,
trace.WithInstrumentationVersion(instrumentationVersion),
trace.WithSchemaURL(semconv.SchemaURL),
)
var tracer = otel.GetTracerProvider().Tracer(
instrumentationName,
trace.WithInstrumentationVersion(instrumentationVersion),
trace.WithSchemaURL(semconv.SchemaURL),
)
4 changes: 1 addition & 3 deletions tracing/tracing.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,11 @@ import (
// instrumentationName = "github.com/overmindtech/gateway/cmd"
// instrumentationVersion = "0.0.1"
// )
// var (
// tracer = otel.GetTracerProvider().Tracer(
// var tracer = otel.GetTracerProvider().Tracer(
// instrumentationName,
// trace.WithInstrumentationVersion(instrumentationVersion),
// trace.WithSchemaURL(semconv.SchemaURL),
// )
// )

func tracingResource() *resource.Resource {
// Identify your application using resource detection
Expand Down

0 comments on commit bbd353b

Please sign in to comment.