-
Notifications
You must be signed in to change notification settings - Fork 312
Changing GRPC instrumentation codes from status.code
to grpc.status.code
#9367
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
Conversation
Code coverage: total 68.77%, base diff 11.33%, patch 100.00% (view details) This comment will be updated automatically if new data arrives.🔗 Commit SHA: cfb2b6d | Docs | Was this helpful? Give us feedback! |
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 45 metrics, 14 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.53.0-SNAPSHOT~cfb2b6d301, baseline=1.53.0-SNAPSHOT~1f3544809f
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.046 s) : 0, 1046221
Total [baseline] (8.579 s) : 0, 8578677
Agent [candidate] (1.046 s) : 0, 1045650
Total [candidate] (8.593 s) : 0, 8593275
section iast
Agent [baseline] (1.181 s) : 0, 1180707
Total [baseline] (9.339 s) : 0, 9339317
Agent [candidate] (1.18 s) : 0, 1179984
Total [candidate] (9.316 s) : 0, 9316066
gantt
title insecure-bank - break down per module: candidate=1.53.0-SNAPSHOT~cfb2b6d301, baseline=1.53.0-SNAPSHOT~1f3544809f
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.456 ms) : 0, 1456
crashtracking [candidate] (1.443 ms) : 0, 1443
BytebuddyAgent [baseline] (731.433 ms) : 0, 731433
BytebuddyAgent [candidate] (730.731 ms) : 0, 730731
GlobalTracer [baseline] (242.535 ms) : 0, 242535
GlobalTracer [candidate] (242.195 ms) : 0, 242195
AppSec [baseline] (29.993 ms) : 0, 29993
AppSec [candidate] (30.059 ms) : 0, 30059
Debugger [baseline] (6.058 ms) : 0, 6058
Debugger [candidate] (6.043 ms) : 0, 6043
Remote Config [baseline] (674.897 µs) : 0, 675
Remote Config [candidate] (658.1 µs) : 0, 658
Telemetry [baseline] (13.043 ms) : 0, 13043
Telemetry [candidate] (13.564 ms) : 0, 13564
section iast
crashtracking [baseline] (1.45 ms) : 0, 1450
crashtracking [candidate] (1.45 ms) : 0, 1450
BytebuddyAgent [baseline] (851.852 ms) : 0, 851852
BytebuddyAgent [candidate] (851.886 ms) : 0, 851886
GlobalTracer [baseline] (233.618 ms) : 0, 233618
GlobalTracer [candidate] (234.13 ms) : 0, 234130
IAST [baseline] (30.499 ms) : 0, 30499
IAST [candidate] (29.999 ms) : 0, 29999
AppSec [baseline] (25.959 ms) : 0, 25959
AppSec [candidate] (26.046 ms) : 0, 26046
Debugger [baseline] (7.424 ms) : 0, 7424
Debugger [candidate] (6.595 ms) : 0, 6595
Remote Config [baseline] (605.439 µs) : 0, 605
Remote Config [candidate] (601.954 µs) : 0, 602
Telemetry [baseline] (8.219 ms) : 0, 8219
Telemetry [candidate] (8.229 ms) : 0, 8229
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.53.0-SNAPSHOT~cfb2b6d301, baseline=1.53.0-SNAPSHOT~1f3544809f
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.047 s) : 0, 1046918
Total [baseline] (10.723 s) : 0, 10723269
Agent [candidate] (1.046 s) : 0, 1046308
Total [candidate] (10.677 s) : 0, 10676547
section appsec
Agent [baseline] (1.224 s) : 0, 1223727
Total [baseline] (10.768 s) : 0, 10767861
Agent [candidate] (1.224 s) : 0, 1224087
Total [candidate] (10.815 s) : 0, 10815113
section iast
Agent [baseline] (1.177 s) : 0, 1176942
Total [baseline] (10.869 s) : 0, 10869307
Agent [candidate] (1.179 s) : 0, 1178842
Total [candidate] (10.878 s) : 0, 10878075
section profiling
Agent [baseline] (1.197 s) : 0, 1197041
Total [baseline] (10.905 s) : 0, 10904618
Agent [candidate] (1.199 s) : 0, 1198606
Total [candidate] (10.952 s) : 0, 10952209
gantt
title petclinic - break down per module: candidate=1.53.0-SNAPSHOT~cfb2b6d301, baseline=1.53.0-SNAPSHOT~1f3544809f
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.447 ms) : 0, 1447
crashtracking [candidate] (1.446 ms) : 0, 1446
BytebuddyAgent [baseline] (732.24 ms) : 0, 732240
BytebuddyAgent [candidate] (731.382 ms) : 0, 731382
GlobalTracer [baseline] (242.407 ms) : 0, 242407
GlobalTracer [candidate] (242.243 ms) : 0, 242243
AppSec [baseline] (30.081 ms) : 0, 30081
AppSec [candidate] (30.015 ms) : 0, 30015
Debugger [baseline] (6.048 ms) : 0, 6048
Debugger [candidate] (6.023 ms) : 0, 6023
Remote Config [baseline] (668.559 µs) : 0, 669
Remote Config [candidate] (668.816 µs) : 0, 669
Telemetry [baseline] (12.91 ms) : 0, 12910
Telemetry [candidate] (13.492 ms) : 0, 13492
section appsec
crashtracking [baseline] (1.448 ms) : 0, 1448
crashtracking [candidate] (1.453 ms) : 0, 1453
BytebuddyAgent [baseline] (755.643 ms) : 0, 755643
BytebuddyAgent [candidate] (756.093 ms) : 0, 756093
GlobalTracer [baseline] (235.173 ms) : 0, 235173
GlobalTracer [candidate] (235.642 ms) : 0, 235642
IAST [baseline] (23.635 ms) : 0, 23635
IAST [candidate] (23.438 ms) : 0, 23438
AppSec [baseline] (170.291 ms) : 0, 170291
AppSec [candidate] (170.679 ms) : 0, 170679
Debugger [baseline] (6.548 ms) : 0, 6548
Debugger [candidate] (6.544 ms) : 0, 6544
Remote Config [baseline] (633.913 µs) : 0, 634
Remote Config [candidate] (632.957 µs) : 0, 633
Telemetry [baseline] (9.255 ms) : 0, 9255
Telemetry [candidate] (8.457 ms) : 0, 8457
section iast
crashtracking [baseline] (1.462 ms) : 0, 1462
crashtracking [candidate] (1.45 ms) : 0, 1450
BytebuddyAgent [baseline] (849.493 ms) : 0, 849493
BytebuddyAgent [candidate] (850.46 ms) : 0, 850460
GlobalTracer [baseline] (232.755 ms) : 0, 232755
GlobalTracer [candidate] (232.943 ms) : 0, 232943
IAST [baseline] (31.93 ms) : 0, 31930
IAST [candidate] (28.774 ms) : 0, 28774
AppSec [baseline] (25.759 ms) : 0, 25759
AppSec [candidate] (28.523 ms) : 0, 28523
Debugger [baseline] (5.722 ms) : 0, 5722
Debugger [candidate] (6.573 ms) : 0, 6573
Remote Config [baseline] (596.112 µs) : 0, 596
Remote Config [candidate] (601.637 µs) : 0, 602
Telemetry [baseline] (8.244 ms) : 0, 8244
Telemetry [candidate] (8.382 ms) : 0, 8382
section profiling
crashtracking [baseline] (1.426 ms) : 0, 1426
crashtracking [candidate] (1.422 ms) : 0, 1422
BytebuddyAgent [baseline] (762.501 ms) : 0, 762501
BytebuddyAgent [candidate] (762.266 ms) : 0, 762266
GlobalTracer [baseline] (222.135 ms) : 0, 222135
GlobalTracer [candidate] (222.695 ms) : 0, 222695
AppSec [baseline] (30.696 ms) : 0, 30696
AppSec [candidate] (29.945 ms) : 0, 29945
Debugger [baseline] (7.84 ms) : 0, 7840
Debugger [candidate] (7.054 ms) : 0, 7054
Remote Config [baseline] (700.777 µs) : 0, 701
Remote Config [candidate] (715.24 µs) : 0, 715
Telemetry [baseline] (13.079 ms) : 0, 13079
Telemetry [candidate] (15.832 ms) : 0, 15832
ProfilingAgent [baseline] (108.94 ms) : 0, 108940
ProfilingAgent [candidate] (109.021 ms) : 0, 109021
Profiling [baseline] (109.562 ms) : 0, 109562
Profiling [candidate] (109.686 ms) : 0, 109686
LoadParameters
See matching parameters
SummaryFound 3 performance improvements and 1 performance regressions! Performance is the same for 8 metrics, 12 unstable metrics.
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.53.0-SNAPSHOT~cfb2b6d301, baseline=1.53.0-SNAPSHOT~1f3544809f
dateFormat X
axisFormat %s
section baseline
no_agent (37.809 ms) : 37494, 38125
. : milestone, 37809,
appsec (50.041 ms) : 49582, 50499
. : milestone, 50041,
code_origins (47.281 ms) : 46852, 47709
. : milestone, 47281,
iast (45.287 ms) : 44890, 45684
. : milestone, 45287,
profiling (49.517 ms) : 49036, 49997
. : milestone, 49517,
tracing (44.978 ms) : 44616, 45341
. : milestone, 44978,
section candidate
no_agent (37.423 ms) : 37120, 37725
. : milestone, 37423,
appsec (47.277 ms) : 46844, 47709
. : milestone, 47277,
code_origins (45.467 ms) : 45069, 45865
. : milestone, 45467,
iast (45.118 ms) : 44719, 45516
. : milestone, 45118,
profiling (48.951 ms) : 48473, 49429
. : milestone, 48951,
tracing (45.171 ms) : 44783, 45558
. : milestone, 45171,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.53.0-SNAPSHOT~cfb2b6d301, baseline=1.53.0-SNAPSHOT~1f3544809f
dateFormat X
axisFormat %s
section baseline
no_agent (4.651 ms) : 4596, 4707
. : milestone, 4651,
iast (9.198 ms) : 9040, 9356
. : milestone, 9198,
iast_FULL (14.113 ms) : 13828, 14398
. : milestone, 14113,
iast_GLOBAL (10.132 ms) : 9959, 10305
. : milestone, 10132,
profiling (9.047 ms) : 8884, 9211
. : milestone, 9047,
tracing (7.906 ms) : 7794, 8018
. : milestone, 7906,
section candidate
no_agent (4.589 ms) : 4532, 4647
. : milestone, 4589,
iast (9.815 ms) : 9642, 9987
. : milestone, 9815,
iast_FULL (14.171 ms) : 13880, 14461
. : milestone, 14171,
iast_GLOBAL (9.867 ms) : 9679, 10054
. : milestone, 9867,
profiling (9.081 ms) : 8943, 9219
. : milestone, 9081,
tracing (7.596 ms) : 7491, 7702
. : milestone, 7596,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 11 metrics, 1 unstable metrics. Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.53.0-SNAPSHOT~cfb2b6d301, baseline=1.53.0-SNAPSHOT~1f3544809f
dateFormat X
axisFormat %s
section baseline
no_agent (1.476 ms) : 1464, 1487
. : milestone, 1476,
appsec (3.658 ms) : 3442, 3875
. : milestone, 3658,
iast (2.191 ms) : 2129, 2254
. : milestone, 2191,
iast_GLOBAL (2.241 ms) : 2178, 2305
. : milestone, 2241,
profiling (2.061 ms) : 2009, 2113
. : milestone, 2061,
tracing (2.025 ms) : 1976, 2075
. : milestone, 2025,
section candidate
no_agent (1.471 ms) : 1460, 1483
. : milestone, 1471,
appsec (3.613 ms) : 3400, 3827
. : milestone, 3613,
iast (2.197 ms) : 2134, 2260
. : milestone, 2197,
iast_GLOBAL (2.241 ms) : 2178, 2304
. : milestone, 2241,
profiling (2.062 ms) : 2010, 2115
. : milestone, 2062,
tracing (2.015 ms) : 1967, 2064
. : milestone, 2015,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.53.0-SNAPSHOT~cfb2b6d301, baseline=1.53.0-SNAPSHOT~1f3544809f
dateFormat X
axisFormat %s
section baseline
no_agent (15.028 s) : 15028000, 15028000
. : milestone, 15028000,
appsec (14.859 s) : 14859000, 14859000
. : milestone, 14859000,
iast (18.242 s) : 18242000, 18242000
. : milestone, 18242000,
iast_GLOBAL (18.363 s) : 18363000, 18363000
. : milestone, 18363000,
profiling (15.48 s) : 15480000, 15480000
. : milestone, 15480000,
tracing (15.034 s) : 15034000, 15034000
. : milestone, 15034000,
section candidate
no_agent (15.236 s) : 15236000, 15236000
. : milestone, 15236000,
appsec (14.922 s) : 14922000, 14922000
. : milestone, 14922000,
iast (18.18 s) : 18180000, 18180000
. : milestone, 18180000,
iast_GLOBAL (18.075 s) : 18075000, 18075000
. : milestone, 18075000,
profiling (15.128 s) : 15128000, 15128000
. : milestone, 15128000,
tracing (14.949 s) : 14949000, 14949000
. : milestone, 14949000,
|
Hi! 👋 Thanks for your pull request! 🎉 To help us review it, please make sure to:
If you need help, please check our contributing guidelines. |
|
||
public AgentSpan onClose(final AgentSpan span, final Status status) { | ||
|
||
span.setTag("status.code", status.getCode().name()); |
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.
what about leaving both? Suppressing a tag is a breaking change. I would also discuss with IDM about that
| Package | Type | Package file | Manager | Update | Change | |---|---|---|---|---|---| | [com.datadoghq:dd-trace-api](https://github.com/datadog/dd-trace-java) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `1.52.1` -> `1.53.0` | --- ### Release Notes <details> <summary>datadog/dd-trace-java (com.datadoghq:dd-trace-api)</summary> ### [`v1.53.0`](https://github.com/DataDog/dd-trace-java/releases/tag/v1.53.0): 1.53.0 ### Components #### Application Security Management (WAF) - 🐛 Fix NullPointerException log in AppSec ([#​9355](DataDog/dd-trace-java#9355) - [@​jandro996](https://github.com/jandro996)) - ✨ Add Forwarded header as a source to client IP resolution ([#​9310](DataDog/dd-trace-java#9310) - [@​jandro996](https://github.com/jandro996)) #### Build & Tooling - 📖 Update CODEOWNERS ([#​9294](DataDog/dd-trace-java#9294) - [@​mhlidd](https://github.com/mhlidd)) - ✨ Add dependency on Maven Central deployment to OCI publish jobs ([#​9204](DataDog/dd-trace-java#9204) - [@​sarahchen6](https://github.com/sarahchen6)) #### Continuous Integration Visibility - ✨ Upload code coverage reports to Datadog ([#​9425](DataDog/dd-trace-java#9425) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - ✨⚡ Do not follow symlinks by default when building repository index ([#​9318](DataDog/dd-trace-java#9318) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - ✨ Improve tag propagation between test event levels ([#​9278](DataDog/dd-trace-java#9278) - [@​daniel-mohedano](https://github.com/daniel-mohedano)) #### Data Streams Monitoring - ✨ Create container hash tags propagation ([#​9282](DataDog/dd-trace-java#9282) - [@​ygree](https://github.com/ygree)) #### Database Monitoring - 🐛 Prevent crash in SQL Server's JDBC when tracing execute methods with generated keys ([#​9321](DataDog/dd-trace-java#9321) - [@​na-ji](https://github.com/na-ji)) - ✨ Create container hash tags propagation ([#​9282](DataDog/dd-trace-java#9282) - [@​ygree](https://github.com/ygree)) #### GraalVM native-image - 🐛 Update GraalVM config to reflect TempLocationManager's new package ([#​9337](DataDog/dd-trace-java#9337) - [@​luneo7](https://github.com/luneo7) - thanks for the contribution!) #### Metrics - 🐛 Add reflect config for CSS and graalvm ([#​9449](DataDog/dd-trace-java#9449) - [@​amarziali](https://github.com/amarziali)) - ✨ Align CSS health metrics ([#​9444](DataDog/dd-trace-java#9444) - [@​amarziali](https://github.com/amarziali)) - ✨ Aggregate peer tags for consumer span kind ([#​9442](DataDog/dd-trace-java#9442) - [@​amarziali](https://github.com/amarziali)) - ✨ Implement health metrics for client stats ([#​9377](DataDog/dd-trace-java#9377) - [@​amarziali](https://github.com/amarziali)) - ✨ Add peer tags, span kind and trace root flag to MetricKey bucket ([#​9178](DataDog/dd-trace-java#9178) - [@​bric3](https://github.com/bric3)) #### Profiling - ✨ Create a profile flare reporter (requires tracing or CI vis to be enabled) ([#​9433](DataDog/dd-trace-java#9433) - [@​MattAlp](https://github.com/MattAlp)) - 🐛 Properly fall-back on UDS profiling URL ([#​9401](DataDog/dd-trace-java#9401) - [@​jbachorik](https://github.com/jbachorik)) - 🐛 Properly handle trace agent IPv6 URL in profiling ([#​9334](DataDog/dd-trace-java#9334) - [@​jbachorik](https://github.com/jbachorik)) #### Realtime User Monitoring - 🐛 Avoid multiple injections on dispatch on jboss ([#​9392](DataDog/dd-trace-java#9392) - [@​amarziali](https://github.com/amarziali)) - ✨ Support async servlet for RUM injection ([#​9333](DataDog/dd-trace-java#9333) - [@​amarziali](https://github.com/amarziali)) - 🐛 Improve RUM injection matching and avoid truncating responses ([#​9323](DataDog/dd-trace-java#9323) - [@​amarziali](https://github.com/amarziali)) - 💡 Add telemetry for the RUM injector ([#​9267](DataDog/dd-trace-java#9267) - [@​sarahchen6](https://github.com/sarahchen6)) - ✨ Make rum injector stream/writer more resilient to errors ([#​9184](DataDog/dd-trace-java#9184) - [@​amarziali](https://github.com/amarziali)) #### Telemetry - 🐛 Remediate error logs ([#​9459](DataDog/dd-trace-java#9459) - [@​ygree](https://github.com/ygree)) - ✨ Report config\_id for Hands Off Config files ([#​9299](DataDog/dd-trace-java#9299) - [@​mtoffl01](https://github.com/mtoffl01)) - ✨ Adding Config Inversion Telemetry component ([#​9244](DataDog/dd-trace-java#9244) - [@​mhlidd](https://github.com/mhlidd)) #### Trace context propagation - 🧹 Migrate instrumentations to Context API ([#​9384](DataDog/dd-trace-java#9384), [#​9378](DataDog/dd-trace-java#9378), [#​9358](DataDog/dd-trace-java#9358) - [@​PerfectSlayer](https://github.com/PerfectSlayer)) - ✨🔍 Add baggage propagation telemetry ([#​9289](DataDog/dd-trace-java#9289) - [@​rachelyangdog](https://github.com/rachelyangdog)) - 🧹 Improve Instrumenter API to use Context instead of Span ([#​9211](DataDog/dd-trace-java#9211) - [@​PerfectSlayer](https://github.com/PerfectSlayer)) #### Tracer core - 💡:test\_tube: Enable process level tags for java 21 applications ([#​9458](DataDog/dd-trace-java#9458) - [@​amarziali](https://github.com/amarziali)) - ✨ Move base and peer service adder before span is published ([#​9408](DataDog/dd-trace-java#9408) - [@​amarziali](https://github.com/amarziali)) - ✨ Add ErrorPriorities level for manual instrumentation ([#​9387](DataDog/dd-trace-java#9387) - [@​cecile75](https://github.com/cecile75)) - ✨ Throw InvalidBooleanValueException in ConfigConverter.booleanValueOf ([#​9370](DataDog/dd-trace-java#9370) - [@​mtoffl01](https://github.com/mtoffl01)) - 🐛 Avoid NPE on featureDiscovery creation ([#​9353](DataDog/dd-trace-java#9353) - [@​amarziali](https://github.com/amarziali)) - ✨ Stable Config improvements ([#​9259](DataDog/dd-trace-java#9259) - [@​mtoffl01](https://github.com/mtoffl01)) ### Instrumentations #### gRPC instrumentation - 🐛 Changing GRPC instrumentation codes from `status.code` to `grpc.status.code` ([#​9367](DataDog/dd-trace-java#9367) - [@​mhlidd](https://github.com/mhlidd)) #### JDBC instrumentation - 🐛 Prevent crash in SQL Server's JDBC when tracing execute methods with generated keys ([#​9321](DataDog/dd-trace-java#9321) - [@​na-ji](https://github.com/na-ji)) #### Kotlin instrumentation - 🐛 Take defensive copy of original scope stack when restoring on different thread ([#​9403](DataDog/dd-trace-java#9403) - [@​mcculls](https://github.com/mcculls)) #### OpenTelemetry instrumentation - 🐛 Fix using SpanAttribute annotation on multiple parameters ([#​9412](DataDog/dd-trace-java#9412) - [@​cecile75](https://github.com/cecile75)) </details> --- ### Configuration 📅 **Schedule**: Branch creation - "after 6pm every weekday,before 2am every weekday" in timezone Australia/Melbourne, Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Never, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). GitOrigin-RevId: e23ec866cef91afc6b5226d5f0dc7da538d947e8
What Does This Do
Currently the Java tracer sets status codes for GRPC instrumentations as
status.code
. However, the agent does not accept this as a key when handling GRPC status codes, leading to situations where spans could show up with incorrect values for the taggrpc.status.code
.This PR updates the tag that the Java tracer sets for GRPC instrumentation status codes from
status.code
togrpc.status.code
, which is accepted on the agent side.Motivation
There was a discussion on whether this inconsistency should be normalized on the agent side, or handled in the Java Tracer. Given that only the Java tracer uses an inconsistent tag, it was decided that the change should be made in the tracer.
Additional Notes
This change needs to be called out in release notes, in the case where customers expecting
status.code
with alerts/dashboards and need to update to usegrpc.status.code
.Contributor Checklist
type:
and (comp:
orinst:
) labels in addition to any usefull labelsclose
,fix
or any linking keywords when referencing an issue.Use
solves
instead, and assign the PR milestone to the issueJira ticket: [PROJ-IDENT]