Add _dd.base_service tag#3557
Conversation
Overall package sizeSelf size: 5.18 MB Dependency sizes
🤖 This report was automatically generated by heaviest-objects-in-the-universe |
Codecov Report
@@ Coverage Diff @@
## master #3557 +/- ##
==========================================
+ Coverage 84.71% 84.76% +0.04%
==========================================
Files 219 219
Lines 8949 8952 +3
Branches 33 33
==========================================
+ Hits 7581 7588 +7
+ Misses 1368 1364 -4
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
e24ec5b to
5ba3baa
Compare
BenchmarksBenchmark execution time: 2023-09-13 15:52:04 Comparing candidate commit e041be5 in PR branch Found 0 performance improvements and 4 performance regressions! Performance is the same for 426 metrics, 22 unstable metrics. scenario:plugin-graphql-with-depth-and-collapse-off-18
scenario:plugin-graphql-with-depth-and-collapse-on-18
scenario:plugin-graphql-with-depth-off-18
scenario:plugin-graphql-with-depth-on-max-18
|
5ba3baa to
2d05412
Compare
174a63e to
ced3daa
Compare
c7b0f54 to
91174ba
Compare
|
|
||
| if (!Plugin) return | ||
|
|
||
| if (!this._tracerConfig) return // TODO: don't wait for tracer to be initialized |
There was a problem hiding this comment.
aws-sdk direct import tests (specifically, these) fail unless this action is inverted. I'm probably missing some understanding of the way tests set the tracer up, but in the current state, running these tests make the PluginManager instantiate plugins before it is given the tracer config, and causes plugins to be populated with a null tracer config in the PluginManager's registry.
Not relying on plugins solves this, but the comment below still holds IMO.
Looking at the existing flow, it doesn't make sense to me to allow plugins to be configured with a null tracer config before aborting if tracer config is null, and inverting these 2 steps fixes my test issue, but I may be missing something in tests instead.
265584f to
7029998
Compare
7029998 to
e041be5
Compare
|
The code seems fine but it looks like @iunanua had pointed out an issue |
|
The issue is already fixed 🎉 |
What does this PR do?
Add
_dd.base_servicetag containing original tracer-wide configured service if it is not the service in produced spans.Motivation
This is an initiative for every tracer that helps identify services that are modified in code from their
DD_SERVICEdefault, to help remove nodes in service map that don't correspond to concrete services.Plugin Checklist
Additional Notes