Skip to content

[BUG]: DD_TRACE_ENABLED set to false is still sending traces #7907

@wr-cdargis

Description

@wr-cdargis

Tracer Version(s)

arn:aws:lambda:us-east-1:464622532012:layer:dd-trace-dotnet:20

Operating system and platform

aws lambda

Instrumentation Mode

manual with cdk/cloud formation

TFM

net8.0

Bug Report

For DD_TRACE_ENABLED : the documentation says:

"Enables or disables all instrumentation."

We have:

  1. the dotnet tracing layer installed

  2. the env variables configured to DISABLE the extension/layer

  3. evidence in Datadog UI that the extension is still sending tracing.

The obvious concern here is cost.

See the layers installed:
Image

With the env variable DD_TRACE_ENABLED set to false:
Image

DatadogUI still shows traces being sent:
Image

Reproduction Code

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions