Skip to content

Commit a5836ec

Browse files
authored
fix: update comment to clarify OTEL env var reading condition (#200)
1 parent 86f6cd4 commit a5836ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ddlambda.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ func (cfg *Config) toTraceConfig() trace.Config {
232232

233233
if tracingEnabled, err := strconv.ParseBool(os.Getenv(DatadogTraceEnabledEnvVar)); err == nil {
234234
traceConfig.DDTraceEnabled = tracingEnabled
235-
// Only read the OTEL env var if DD tracing is disabled
235+
// Only read the OTEL env var if DD tracing is enabled
236236
if tracingEnabled {
237237
if otelTracerEnabled, err := strconv.ParseBool(os.Getenv(OtelTracerEnabled)); err == nil {
238238
traceConfig.OtelTracerEnabled = otelTracerEnabled

0 commit comments

Comments
 (0)