Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support mapping extensions from different providers into a form that can be used by the Datadog tracer #7049

Merged
merged 2 commits into from
May 20, 2024

Conversation

mcculls
Copy link
Contributor

@mcculls mcculls commented May 20, 2024

Motivation

Provide a way to apply alternative mappings when loading extensions, such as from OpenTelemetry.

Jira ticket: APMAPI-69

@mcculls mcculls added comp: core Tracer core tag: no release notes Changes to exclude from release notes labels May 20, 2024
@mcculls mcculls marked this pull request as ready for review May 20, 2024 12:08
@mcculls mcculls requested a review from a team as a code owner May 20, 2024 12:08
@mcculls mcculls requested review from dougqh, ygree and PerfectSlayer May 20, 2024 12:08
@mcculls mcculls force-pushed the mcculls/support-other-extension-formats branch 2 times, most recently from b963a32 to 51a1fa3 Compare May 20, 2024 15:05
@mcculls mcculls force-pushed the mcculls/support-other-extension-formats branch from 51a1fa3 to 222a95d Compare May 20, 2024 15:21
@mcculls mcculls merged commit cb10c1b into master May 20, 2024
83 of 86 checks passed
@mcculls mcculls deleted the mcculls/support-other-extension-formats branch May 20, 2024 20:50
@github-actions github-actions bot added this to the 1.35.0 milestone May 20, 2024
/** Maps logging references in the extension to use the tracer's embedded logger. */
protected static final Function<String, String> SHADE_LOGGING =
new Function<String, String>() {
// substring stops string literal from being changed by shadow plugin
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding clarification!

mcculls added a commit that referenced this pull request 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 added a commit that referenced this pull request 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 added a commit that referenced this pull request 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`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp: core Tracer core tag: no release notes Changes to exclude from release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants