Skip to content

Revert "Revert "Add _dd.measured to spans when agent sampling is enabled""#7833

Draft
BrynCooke wants to merge 1 commit intodevfrom
revert-7403-revert-7344-bryn/otlp-export-dd-measured
Draft

Revert "Revert "Add _dd.measured to spans when agent sampling is enabled""#7833
BrynCooke wants to merge 1 commit intodevfrom
revert-7403-revert-7344-bryn/otlp-export-dd-measured

Conversation

@BrynCooke
Copy link
Contributor

Reverts #7403

Reopening this PR so that we can see if there are conflicts while we get clarification from datadog.

The current situation where the APM view is not functional is unsustainable and adding yet another config to allow users to set measured on a per span basis is complicated.

Given that the behaviour in Router 1.x is that all spans are measured this feels like a regression rather than a nice to have.

@BrynCooke BrynCooke requested a review from a team July 7, 2025 09:43
@BrynCooke BrynCooke requested a review from a team as a code owner July 7, 2025 09:43
@apollo-librarian
Copy link

apollo-librarian bot commented Jul 7, 2025

✅ Docs preview ready

The preview is ready to be viewed. View the preview

File Changes

1 new, 2 changed, 0 removed
+ (developer-tools)/apollo-operator/_sidebar.yaml
* (developer-tools)/apollo-operator/resources/subgraph.mdx
* (developer-tools)/apollo-operator/resources/supergraphschema.mdx

Build ID: c6023afc51e9e61a22714eed

URL: https://www.apollographql.com/docs/deploy-preview/c6023afc51e9e61a22714eed

span.span_context.is_remote(),
span.span_context.trace_state().clone(),
);
span.attributes.push(KeyValue::new("_dd.measured", 1));
Copy link
Member

Choose a reason for hiding this comment

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

This seems to happen for both the datadog exporter, and the OTLP exporter. The datadog exporter already configures measuring separately, so is it correct to do this here? I think it is duplicate for the DD exporter and could cause confusing interference in the future, and should probably only happen in OTLP.

@abernix abernix marked this pull request as draft November 27, 2025 12:45
@abernix
Copy link
Member

abernix commented Nov 27, 2025

Marking this as a draft until it can get to the top of the stack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants

Comments