Skip to content

Commit a7cf049

Browse files
songy23DougManton
authored andcommitted
Revert "[connector/datadog] Remove feature gate connector.datadogconnector.performance" (open-telemetry#31639)
Reverts open-telemetry#31638
1 parent c18d707 commit a7cf049

File tree

4 files changed

+14
-27
lines changed

4 files changed

+14
-27
lines changed

.chloggen/dd-feature-gate-removal.yaml

Lines changed: 0 additions & 27 deletions
This file was deleted.

internal/datadog/agent.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import (
1919
"github.com/DataDog/datadog-agent/pkg/trace/timing"
2020
"github.com/DataDog/datadog-go/v5/statsd"
2121
"github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics"
22+
"go.opentelemetry.io/collector/featuregate"
2223
"go.opentelemetry.io/collector/pdata/ptrace"
2324
)
2425

@@ -37,6 +38,13 @@ type TraceAgent struct {
3738
exit chan struct{}
3839
}
3940

41+
var _ = featuregate.GlobalRegistry().MustRegister(
42+
"connector.datadogconnector.performance",
43+
featuregate.StageStable,
44+
featuregate.WithRegisterDescription("Datadog Connector will use optimized code"),
45+
featuregate.WithRegisterToVersion("0.97.0"),
46+
)
47+
4048
// newAgent creates a new unstarted traceagent using the given context. Call Start to start the traceagent.
4149
// The out channel will receive outoing stats payloads resulting from spans ingested using the Ingest method.
4250
func NewAgent(ctx context.Context, out chan *pb.StatsPayload, metricsClient statsd.ClientInterface, timingReporter timing.Reporter) *TraceAgent {

internal/datadog/go.mod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ require (
1010
github.com/DataDog/opentelemetry-mapping-go/pkg/otlp/metrics v0.13.4
1111
github.com/stretchr/testify v1.9.0
1212
go.opentelemetry.io/collector/component v0.96.1-0.20240306115632-b2693620eff6
13+
go.opentelemetry.io/collector/featuregate v1.3.1-0.20240306115632-b2693620eff6
1314
go.opentelemetry.io/collector/pdata v1.3.1-0.20240306115632-b2693620eff6
1415
go.opentelemetry.io/otel v1.24.0
1516
go.opentelemetry.io/otel/metric v1.24.0
@@ -45,6 +46,7 @@ require (
4546
github.com/golang/mock v1.6.0 // indirect
4647
github.com/golang/protobuf v1.5.3 // indirect
4748
github.com/google/uuid v1.6.0 // indirect
49+
github.com/hashicorp/go-version v1.6.0 // indirect
4850
github.com/json-iterator/go v1.1.12 // indirect
4951
github.com/karrick/godirwalk v1.17.0 // indirect
5052
github.com/knadh/koanf/maps v0.1.1 // indirect

internal/datadog/go.sum

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)