Skip to content

Fix CodeOrigin for interface endpoints#11017

Merged
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits intomasterfrom
jpbempel/fix-interface-endpoints
Apr 3, 2026
Merged

Fix CodeOrigin for interface endpoints#11017
gh-worker-dd-mergequeue-cf854d[bot] merged 2 commits intomasterfrom
jpbempel/fix-interface-endpoints

Conversation

@jpbempel
Copy link
Copy Markdown
Member

@jpbempel jpbempel commented Apr 1, 2026

What Does This Do

If endpoints are declared in interface with annotations, CodeOrigin instrumentation does not trigger and no code origin information are added to spans.
We need to match also this case to trigger creation of code origin probe for handler in the concrete class implementing the interface Added smoke tests to cover those cases for Spring apps

Motivation

Additional Notes

Contributor Checklist

Jira ticket: DEBUG-5372

Note: Once your PR is ready to merge, add it to the merge queue by commenting /merge. /merge -c cancels the queue request. /merge -f --reason "reason" skips all merge queue checks; please use this judiciously, as some checks do not run at the PR-level. For more information, see this doc.

If endpoints are declared in interface with annotations, CodeOrigin
instrumentation does not trigger and no code origin information
are added to spans.
We need to match also this case to trigger creation of code origin
probe for handler in the concrete class implementing the interface
Added smoke tests to cover those cases for Spring apps
@jpbempel jpbempel force-pushed the jpbempel/fix-interface-endpoints branch from 725abc1 to 1271b9d Compare April 2, 2026 09:37
@jpbempel jpbempel marked this pull request as ready for review April 2, 2026 09:37
@jpbempel jpbempel requested a review from a team as a code owner April 2, 2026 09:37
@jpbempel jpbempel requested review from andreimatei and removed request for a team April 2, 2026 09:37
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

Hi! 👋 Thanks for your pull request! 🎉

To help us review it, please make sure to:

  • Add at least one type, and one component or instrumentation label to the pull request

If you need help, please check our contributing guidelines.

@jpbempel jpbempel added comp: debugger Dynamic Instrumentation type: bug Bug report and fix labels Apr 2, 2026
interface support add overhead at startup so need to be manually
enabled
@jpbempel jpbempel requested review from a team as code owners April 2, 2026 13:28
@jpbempel jpbempel requested review from amarziali and removed request for a team April 2, 2026 13:28
Copy link
Copy Markdown
Contributor

@amarziali amarziali left a comment

Choose a reason for hiding this comment

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

ok for the apm-java owned part (configurations)

@@ -50,9 +50,8 @@ public final class ConfigDefaults {
static final boolean DEFAULT_WRITER_BAGGAGE_INJECT = true;
static final String DEFAULT_SITE = "datadoghq.com";

static final boolean DEFAULT_CODE_ORIGIN_FOR_SPANS_ENABLED = false;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

just replacing this because code origin is default on now and we don't need it?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

this driven by

public static boolean getDefaultCodeOriginForSpanEnabled() {
now

@jpbempel
Copy link
Copy Markdown
Member Author

jpbempel commented Apr 3, 2026

/merge

@gh-worker-devflow-routing-ef8351
Copy link
Copy Markdown

gh-worker-devflow-routing-ef8351 bot commented Apr 3, 2026

View all feedbacks in Devflow UI.

2026-04-03 19:29:36 UTC ℹ️ Start processing command /merge


2026-04-03 19:29:41 UTC ℹ️ MergeQueue: pull request added to the queue

The expected merge time in master is approximately 2h (p90).


2026-04-03 20:34:21 UTC ℹ️ MergeQueue: This merge request was merged

@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d bot merged commit 65b9b8a into master Apr 3, 2026
566 checks passed
@gh-worker-dd-mergequeue-cf854d gh-worker-dd-mergequeue-cf854d bot deleted the jpbempel/fix-interface-endpoints branch April 3, 2026 20:34
@github-actions github-actions bot added this to the 1.61.0 milestone Apr 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp: debugger Dynamic Instrumentation type: bug Bug report and fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants