Skip to content

Commit d355b84

Browse files
authored
chore(orchestrator): unify OTEL env variable name in benchmarks (#2351)
The concurrent benchmark was based on the original benchmark test, which used OTEL_EXPORTER_OTLP_ENDPOINT. The rest of the codebase consistently uses OTEL_COLLECTOR_GRPC_ENDPOINT. Unify the benchmarks to match.
1 parent 49b8f16 commit d355b84

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/orchestrator/benchmarks/benchmark_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ func BenchmarkBaseImageLaunch(b *testing.B) {
8080
return utils.Must(filepath.Abs(s))
8181
}
8282

83-
endpoint := os.Getenv("OTEL_EXPORTER_OTLP_ENDPOINT")
83+
endpoint := os.Getenv("OTEL_COLLECTOR_GRPC_ENDPOINT")
8484
if endpoint != "" {
8585
spanExporter, err := telemetry.NewSpanExporter(b.Context(),
8686
otlptracegrpc.WithEndpoint(endpoint),

packages/orchestrator/benchmarks/concurrent_benchmark_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ func BenchmarkConcurrentResume(b *testing.B) {
166166
}
167167

168168
// optional OTEL tracing
169-
endpoint := os.Getenv("OTEL_EXPORTER_OTLP_ENDPOINT")
169+
endpoint := os.Getenv("OTEL_COLLECTOR_GRPC_ENDPOINT")
170170
if endpoint != "" {
171171
spanExporter, err := telemetry.NewSpanExporter(b.Context(),
172172
otlptracegrpc.WithEndpoint(endpoint),

0 commit comments

Comments
 (0)