Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
dashpole committed Jan 30, 2025
1 parent 1541be9 commit 5d6f316
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions exporters/otlp/otlptrace/otlptracegrpc/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ func newClient(opts ...Option) *client {
return c
}

var exporterID atomic.Uint64
var exporterID atomic.Int64

// nextExporterID returns an identifier for this otlp grpc trace exporter,
// starting with 0 and incrementing by 1 each time it is called.
func nextExporterID() int64 {
return int64(exporterID.Add(1) - 1)
return exporterID.Add(1) - 1
}

// configureSelfObservability configures metrics for the batch span processor.
Expand Down
2 changes: 1 addition & 1 deletion exporters/otlp/otlptrace/otlptracegrpc/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ require (
github.com/stretchr/testify v1.10.0
go.opentelemetry.io/otel v1.34.0
go.opentelemetry.io/otel/exporters/otlp/otlptrace v1.34.0
go.opentelemetry.io/otel/metric v1.34.0
go.opentelemetry.io/otel/sdk v1.34.0
go.opentelemetry.io/otel/trace v1.34.0
go.opentelemetry.io/proto/otlp v1.5.0
Expand All @@ -24,7 +25,6 @@ require (
github.com/grpc-ecosystem/grpc-gateway/v2 v2.26.0 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
go.opentelemetry.io/auto/sdk v1.1.0 // indirect
go.opentelemetry.io/otel/metric v1.34.0 // indirect
golang.org/x/net v0.34.0 // indirect
golang.org/x/sys v0.29.0 // indirect
golang.org/x/text v0.21.0 // indirect
Expand Down
4 changes: 2 additions & 2 deletions sdk/trace/batch_span_processor.go
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ func NewBatchSpanProcessor(exporter SpanExporter, options ...BatchSpanProcessorO
return bsp
}

var processorID atomic.Uint64
var processorID atomic.Int64

// nextProcessorID returns an identifier for this batch span processor,
// starting with 0 and incrementing by 1 each time it is called.
func nextProcessorID() int64 {
return int64(processorID.Add(1) - 1)
return processorID.Add(1) - 1
}

// configureSelfObservability configures metrics for the batch span processor.
Expand Down
4 changes: 2 additions & 2 deletions sdk/trace/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -134,12 +134,12 @@ func NewTracerProvider(opts ...TracerProviderOption) *TracerProvider {
return tp
}

var providerID atomic.Uint64
var providerID atomic.Int64

// nextProviderID returns an identifier for this tracerprovider,
// starting with 0 and incrementing by 1 each time it is called.
func nextProviderID() int64 {
return int64(providerID.Add(1) - 1)
return providerID.Add(1) - 1
}

func (p *TracerProvider) configureSelfObservability() {
Expand Down

0 comments on commit 5d6f316

Please sign in to comment.