feat: resource renaming#3851
Conversation
BenchmarksBenchmark execution time: 2025-10-21 12:52:20 Comparing candidate commit f2c1502 in PR branch Found 0 performance improvements and 1 performance regressions! Performance is the same for 2 metrics, 0 unstable metrics. scenario:BenchmarkInjectW3C-24
|
455fe3e to
a5c1dd2
Compare
6357975 to
1865294
Compare
1865294 to
3e577f7
Compare
|
1a693b2 to
3b02665
Compare
b8cd349 to
9203a91
Compare
| } | ||
|
|
||
| sc.Tags[ext.HTTPEndpoint] = endpoint | ||
| serveCfg.Endpoint = endpoint |
There was a problem hiding this comment.
It feel a bit weird to update the ServeConfig in a StartSpanOption.
It seems that the only place where Endpoint is used is is in renamedRoute, couldn't we read the tag from the span there instead of the config?
There was a problem hiding this comment.
I did that because we don't have access to the span tag (outside of the tracer.StartSpanConfig), or i'm missing something?
There was a problem hiding this comment.
I changed the behavior in f2c1502, it doesn't use ServeConfig anymore to get/set the Endpoint. Let me know if you prefer this solution
c034620 to
cc5f3ce
Compare
1fba641 to
f2c1502
Compare
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
Tests failed on this commit 281945b: What to do next?
|
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
Tests failed on this commit 4b84e91: What to do next?
|
|
/merge |
|
View all feedbacks in Devflow UI.
The expected merge time in
|
What does this PR do?
This PR implements:
This PR:
github.com/DataDog/datadog-agent/pkg/tracetov0.71.0NewStatSpanWithConfig(usinghttpMethodandhttpEndpoint) implemented from trace/stats: Add HTTP Method and Endpoint for resource renaming datadog-agent#39372 for stats computationhttp.endpointtagDD_TRACE_RESOURCE_RENAMING_ENABLEDDD_TRACE_RESOURCE_RENAMING_ALWAYS_SIMPLIFIED_ENDPOINTTests
Unit tests
Unit tests have been implemented for:
System tests
This PR have been tested against the system tests for resource renaming:
Additional information
A PR has been drafted in the dd-source repository that upgrade of the datadog-agent dependency to facilitate the next release that includes these changes.
https://github.com/DataDog/dd-source/pull/291666
Reviewer's Checklist
./scripts/lint.shlocally.Unsure? Have a question? Request a review!