Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ddlambda.go
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ func (cfg *Config) toTraceConfig() trace.Config {

if tracingEnabled, err := strconv.ParseBool(os.Getenv(DatadogTraceEnabledEnvVar)); err == nil {
traceConfig.DDTraceEnabled = tracingEnabled
// Only read the OTEL env var if DD tracing is disabled
// Only read the OTEL env var if DD tracing is enabled
if tracingEnabled {
if otelTracerEnabled, err := strconv.ParseBool(os.Getenv(OtelTracerEnabled)); err == nil {
traceConfig.OtelTracerEnabled = otelTracerEnabled
Expand Down