-
Notifications
You must be signed in to change notification settings - Fork 278
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
Datadog exporter resource behavior and mapping #5386
Conversation
Signed-off-by: Benjamin Coenen <5719034+bnjjj@users.noreply.github.com>
This comment has been minimized.
This comment has been minimized.
CI performance tests
|
@@ -27,6 +27,7 @@ lazy_static! { | |||
static ref SPAN_RESOURCE_NAME_ATTRIBUTE_MAPPING: HashMap<&'static str, &'static str> = { | |||
let mut map = HashMap::new(); | |||
map.insert("request", "http.route"); | |||
map.insert("router", "http.route"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think based on this latest comment, we have to use router
as the HTTP and Service entry span for now until if Datadog could auto instrument http span someday. I think this change could go in.
@BrynCooke Could you see any issues by doing this ? Like breaking existing tracing for our customers on DD ? |
I pushed some WIP code to add configuration and integration tests to show that span mapping is working. |
Add zipkin and datadog test agent to docker compose.
…rce mapping to work.
I can't approve it because I opened that PR but LGTM. Thanks for the refactor around consts it's really nice ! We should do this more often! |
Datadog exporter resource behavior and mapping (Issue #5282)
Users of the Datadog trace exporter may have noticed that span and resource naming is not as expected.
Unlike other APMs, Datadog expects static span names, and then uses resource mapping to provide additional context.
The default behavior of the Datadog exporter has now been changed to support this and give a better user experience.
The following default resource mappings are applied:
request
http.route
router
http.route
supergraph
graphql.operation.name
query_planning
graphql.operation.name
subgraph
subgraph.name
subgraph_request
graphql.operation.name
http_request
http.route
You can override the default resource mappings by specifying the
resource_mapping
configuration:Fixes #5282
#ROUTER-359
Checklist
Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.
Exceptions
Note any exceptions here
Notes
Footnotes
It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this. ↩
Configuration is an important part of many changes. Where applicable please try to document configuration examples. ↩
Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions. ↩