Commit c1cbca1
Reuse SpanKind Entry in ClientDecorator (#10503)
Updating tests to account for API changes
Adding tagIterator and valueIterator
Adding checks for EntryIterator
Removing EntryIterator and EntryChangeIterator
EntryIterator and EntryChangeIterator are arguably redundant
spotless
Merge branch 'master' into dougqh/tagmap-entryreader
Refining handling of primitive types
Fixed bug TagValueConversions.toBoolean
Could cause LegacyTagMap.EntryReader to produce incorrect answers to some queries
For simplicity, now treating Byte and Short as Integer. That will make calling code doing primitive handling simpler.
Fleshing out tests -- more tests to come
Refining comment in toBoolean
Adding more TagValueConversionTest-s
Coverage for byte, short, float, and double
Adding Entry tests for byte and short boxes
spotless
Merge branch 'master' into dougqh/tagmap-entryreader
Merge branch 'master' into dougqh/tagmap-entryreader
Direct TagMap.Entry support in AgentSpan / DDSpan
Adding methods to AgentSpan / DDSpan that take TagMap.Entry/Reader objects directly
This will enable TagMap.Entry reuse which can reduce memory allocation/GC pressure
Adding public create methods to TagMap.Entry
Methods are intended to be used to create TagMap.Entry objects for repeatedly used values
Overloads are provided for all the supported types to be easier for developers not familiar with TagMap internals. Internally, TagMap still uses the more explicit new<X>Entry methods.
spotless
Merge branch 'master' into dougqh/fdirect-apis-for-tagmap-entry
Fixed merge
Removing statics that were previously moved to TagValueConversions
Clarifying comments
Adding tests for TagMap.Entry.create
- tests exposed missing TagMap.Entry.create for boolean
- added explanatory strings to some asserts
spotless
Comments
Merge branch 'master' into dougqh/fdirect-apis-for-tagmap-entry
Adding test for TagMap.Entry setters
Merge branch 'dougqh/fdirect-apis-for-tagmap-entry' of github.com:DataDog/dd-trace-java into dougqh/fdirect-apis-for-tagmap-entry
Adding missing import
spotless
Groovy codeNarc
Merge branch 'master' into dougqh/fdirect-apis-for-tagmap-entry
Caching & reusing spanKind entry to reduce allocation
Merge branch 'master' into dougqh/client-kind-entry-reuse
Test clean-up
Some of this was a bad merge, but I probably missed some in my other PR, too
Merge branch 'master' into dougqh/client-kind-entry-reuse
Clean-up oversights caught in review
Adding explanatory comment on reason behind the approach
Merge branch 'master' into dougqh/client-kind-entry-reuse
Fixing the tests
Merge branch 'master' into dougqh/client-kind-entry-reuse
Co-authored-by: devflow.devflow-routing-intake <devflow.devflow-routing-intake@kubernetes.us1.ddbuild.io>1 parent 8fbdc86 commit c1cbca1
5 files changed
Lines changed: 32 additions & 26 deletions
File tree
- dd-java-agent/agent-bootstrap/src
- main/java/datadog/trace/bootstrap/instrumentation/decorator
- test/groovy/datadog/trace/bootstrap/instrumentation/decorator
- internal-api/src/test/java/datadog/trace/api
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
10 | 30 | | |
11 | 31 | | |
12 | 32 | | |
| |||
17 | 37 | | |
18 | 38 | | |
19 | 39 | | |
20 | | - | |
| 40 | + | |
21 | 41 | | |
22 | 42 | | |
23 | 43 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
30 | 31 | | |
31 | 32 | | |
32 | 33 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| |||
Lines changed: 6 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
107 | | - | |
| 107 | + | |
108 | 108 | | |
109 | 109 | | |
110 | 110 | | |
| |||
119 | 119 | | |
120 | 120 | | |
121 | 121 | | |
122 | | - | |
| 122 | + | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
| |||
253 | 253 | | |
254 | 254 | | |
255 | 255 | | |
256 | | - | |
| 256 | + | |
257 | 257 | | |
258 | 258 | | |
259 | 259 | | |
| |||
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | | - | |
| 272 | + | |
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| |||
497 | 497 | | |
498 | 498 | | |
499 | 499 | | |
500 | | - | |
501 | 500 | | |
502 | 501 | | |
503 | | - | |
504 | | - | |
505 | | - | |
506 | | - | |
507 | | - | |
508 | | - | |
509 | | - | |
510 | | - | |
511 | | - | |
512 | | - | |
513 | | - | |
514 | | - | |
515 | | - | |
516 | | - | |
517 | | - | |
518 | | - | |
| 502 | + | |
519 | 503 | | |
520 | 504 | | |
521 | 505 | | |
| |||
547 | 531 | | |
548 | 532 | | |
549 | 533 | | |
550 | | - | |
| 534 | + | |
551 | 535 | | |
552 | 536 | | |
553 | 537 | | |
| |||
0 commit comments