Skip to content

Disable URL instrumentation by default#7073

Merged
mcculls merged 1 commit intomasterfrom
mcculls/disable-url-instrumentation
May 24, 2024
Merged

Disable URL instrumentation by default#7073
mcculls merged 1 commit intomasterfrom
mcculls/disable-url-instrumentation

Conversation

@mcculls
Copy link
Copy Markdown
Contributor

@mcculls mcculls commented May 24, 2024

What Does This Do

Exceptions during HTTP connections are already captured by HttpUrlConnectionInstrumentation so we don't need to also instrument the generic URL connection code.

The alternative would be to have an allow (or deny) list of protocols to decide when to report URL connection exceptions as spans.

Motivation

Avoids creating unnecessary spans when exceptions occur during custom non-HTTP connections, like the custom Jar connection recently added in #7049.

Additional Notes

  • The URL instrumentation can be re-enabled with DD_INTEGRATION_URLCONNECTION_ENABLED=true
  • The respective instrumentation in OpenTelemetry was also removed for the same reason.

@mcculls mcculls added the inst: java Core Java language instrumentation label May 24, 2024
Avoids creating unnecessary spans when exceptions occur during custom non-HTTP connections,
like the custom Jar connection recently added in #7049. Note the respective instrumentation
in OpenTelemetry was also removed for the same reason.

Exceptions during HTTP connections are already captured by HttpUrlConnectionInstrumentation.

The URL instrumentation can be re-enabled with `DD_INTEGRATION_URLCONNECTION_ENABLED=true`
@mcculls mcculls force-pushed the mcculls/disable-url-instrumentation branch from 2f54d8d to 1ae652a Compare May 24, 2024 13:11
@mcculls mcculls marked this pull request as ready for review May 24, 2024 13:32
@mcculls mcculls requested a review from a team as a code owner May 24, 2024 13:32
@mcculls mcculls requested review from PerfectSlayer and dougqh May 24, 2024 13:33
@PerfectSlayer PerfectSlayer added the type: enhancement Enhancements and improvements label May 24, 2024
@mcculls mcculls merged commit f89dfd6 into master May 24, 2024
@mcculls mcculls deleted the mcculls/disable-url-instrumentation branch May 24, 2024 16:54
@github-actions github-actions Bot added this to the 1.35.0 milestone May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inst: java Core Java language instrumentation type: enhancement Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants