-
Notifications
You must be signed in to change notification settings - Fork 293
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
Cassandra: allow extracting keyspace from statement result #8239
Conversation
Hi! 👋 Thanks for your pull request! 🎉 To help us review it, please make sure to:
If you need help, please check our contributing guidelines. |
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 58 metrics, 5 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.46.0-SNAPSHOT~94da60d255, baseline=1.46.0-SNAPSHOT~693c605f76
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.055 s) : 0, 1055286
Total [baseline] (10.461 s) : 0, 10460634
Agent [candidate] (1.055 s) : 0, 1054989
Total [candidate] (10.448 s) : 0, 10447739
section appsec
Agent [baseline] (1.193 s) : 0, 1193006
Total [baseline] (10.665 s) : 0, 10664731
Agent [candidate] (1.194 s) : 0, 1194161
Total [candidate] (10.728 s) : 0, 10728426
section iast
Agent [baseline] (1.185 s) : 0, 1184773
Total [baseline] (11.031 s) : 0, 11031005
Agent [candidate] (1.185 s) : 0, 1184723
Total [candidate] (11.027 s) : 0, 11027475
section profiling
Agent [baseline] (1.256 s) : 0, 1256078
Total [baseline] (10.769 s) : 0, 10768525
Agent [candidate] (1.256 s) : 0, 1255753
Total [candidate] (10.782 s) : 0, 10782183
gantt
title petclinic - break down per module: candidate=1.46.0-SNAPSHOT~94da60d255, baseline=1.46.0-SNAPSHOT~693c605f76
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (713.613 ms) : 0, 713613
BytebuddyAgent [candidate] (713.844 ms) : 0, 713844
GlobalTracer [baseline] (255.564 ms) : 0, 255564
GlobalTracer [candidate] (255.128 ms) : 0, 255128
AppSec [baseline] (55.54 ms) : 0, 55540
AppSec [candidate] (56.779 ms) : 0, 56779
Remote Config [baseline] (740.724 µs) : 0, 741
Remote Config [candidate] (720.419 µs) : 0, 720
Telemetry [baseline] (14.905 ms) : 0, 14905
Telemetry [candidate] (13.528 ms) : 0, 13528
section appsec
BytebuddyAgent [baseline] (734.382 ms) : 0, 734382
BytebuddyAgent [candidate] (734.987 ms) : 0, 734987
GlobalTracer [baseline] (253.826 ms) : 0, 253826
GlobalTracer [candidate] (254.493 ms) : 0, 254493
AppSec [baseline] (171.324 ms) : 0, 171324
AppSec [candidate] (170.646 ms) : 0, 170646
Remote Config [baseline] (660.645 µs) : 0, 661
Remote Config [candidate] (662.331 µs) : 0, 662
Telemetry [baseline] (8.155 ms) : 0, 8155
Telemetry [candidate] (8.577 ms) : 0, 8577
IAST [baseline] (19.368 ms) : 0, 19368
IAST [candidate] (19.51 ms) : 0, 19510
section iast
BytebuddyAgent [baseline] (833.287 ms) : 0, 833287
BytebuddyAgent [candidate] (833.873 ms) : 0, 833873
GlobalTracer [baseline] (247.036 ms) : 0, 247036
GlobalTracer [candidate] (246.425 ms) : 0, 246425
AppSec [baseline] (58.288 ms) : 0, 58288
AppSec [candidate] (58.135 ms) : 0, 58135
Remote Config [baseline] (665.96 µs) : 0, 666
Remote Config [candidate] (671.442 µs) : 0, 671
Telemetry [baseline] (8.811 ms) : 0, 8811
Telemetry [candidate] (8.823 ms) : 0, 8823
IAST [baseline] (21.693 ms) : 0, 21693
IAST [candidate] (21.727 ms) : 0, 21727
section profiling
ProfilingAgent [baseline] (95.227 ms) : 0, 95227
ProfilingAgent [candidate] (95.748 ms) : 0, 95748
BytebuddyAgent [baseline] (705.139 ms) : 0, 705139
BytebuddyAgent [candidate] (703.952 ms) : 0, 703952
GlobalTracer [baseline] (349.325 ms) : 0, 349325
GlobalTracer [candidate] (349.96 ms) : 0, 349960
AppSec [baseline] (54.878 ms) : 0, 54878
AppSec [candidate] (54.527 ms) : 0, 54527
Remote Config [baseline] (703.835 µs) : 0, 704
Remote Config [candidate] (710.101 µs) : 0, 710
Telemetry [baseline] (8.835 ms) : 0, 8835
Telemetry [candidate] (8.92 ms) : 0, 8920
Profiling [baseline] (95.251 ms) : 0, 95251
Profiling [candidate] (95.773 ms) : 0, 95773
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.46.0-SNAPSHOT~94da60d255, baseline=1.46.0-SNAPSHOT~693c605f76
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.065 s) : 0, 1064549
Total [baseline] (8.674 s) : 0, 8673576
Agent [candidate] (1.058 s) : 0, 1057973
Total [candidate] (8.606 s) : 0, 8606378
section iast
Agent [baseline] (1.182 s) : 0, 1181666
Total [baseline] (9.197 s) : 0, 9196571
Agent [candidate] (1.184 s) : 0, 1183987
Total [candidate] (9.16 s) : 0, 9159741
section iast_HARDCODED_SECRET_DISABLED
Agent [baseline] (1.184 s) : 0, 1184351
Total [baseline] (9.164 s) : 0, 9163758
Agent [candidate] (1.199 s) : 0, 1199438
Total [candidate] (9.199 s) : 0, 9198702
section iast_TELEMETRY_OFF
Agent [baseline] (1.181 s) : 0, 1180588
Total [baseline] (9.176 s) : 0, 9176313
Agent [candidate] (1.18 s) : 0, 1179547
Total [candidate] (9.179 s) : 0, 9178963
gantt
title insecure-bank - break down per module: candidate=1.46.0-SNAPSHOT~94da60d255, baseline=1.46.0-SNAPSHOT~693c605f76
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (719.901 ms) : 0, 719901
BytebuddyAgent [candidate] (715.878 ms) : 0, 715878
GlobalTracer [baseline] (257.7 ms) : 0, 257700
GlobalTracer [candidate] (255.857 ms) : 0, 255857
AppSec [baseline] (56.619 ms) : 0, 56619
AppSec [candidate] (57.1 ms) : 0, 57100
Remote Config [baseline] (756.841 µs) : 0, 757
Remote Config [candidate] (741.795 µs) : 0, 742
Telemetry [baseline] (14.529 ms) : 0, 14529
Telemetry [candidate] (13.403 ms) : 0, 13403
section iast
BytebuddyAgent [baseline] (831.529 ms) : 0, 831529
BytebuddyAgent [candidate] (832.969 ms) : 0, 832969
GlobalTracer [baseline] (246.208 ms) : 0, 246208
GlobalTracer [candidate] (247.237 ms) : 0, 247237
AppSec [baseline] (58.016 ms) : 0, 58016
AppSec [candidate] (58.031 ms) : 0, 58031
IAST [baseline] (21.522 ms) : 0, 21522
IAST [candidate] (21.383 ms) : 0, 21383
Remote Config [baseline] (667.147 µs) : 0, 667
Remote Config [candidate] (671.699 µs) : 0, 672
Telemetry [baseline] (8.744 ms) : 0, 8744
Telemetry [candidate] (8.69 ms) : 0, 8690
section iast_HARDCODED_SECRET_DISABLED
BytebuddyAgent [baseline] (832.675 ms) : 0, 832675
BytebuddyAgent [candidate] (845.37 ms) : 0, 845370
GlobalTracer [baseline] (246.886 ms) : 0, 246886
GlobalTracer [candidate] (248.948 ms) : 0, 248948
AppSec [baseline] (58.439 ms) : 0, 58439
AppSec [candidate] (58.523 ms) : 0, 58523
IAST [baseline] (21.848 ms) : 0, 21848
IAST [candidate] (21.712 ms) : 0, 21712
Remote Config [baseline] (667.469 µs) : 0, 667
Remote Config [candidate] (676.875 µs) : 0, 677
Telemetry [baseline] (8.818 ms) : 0, 8818
Telemetry [candidate] (8.795 ms) : 0, 8795
section iast_TELEMETRY_OFF
BytebuddyAgent [baseline] (829.419 ms) : 0, 829419
BytebuddyAgent [candidate] (830.051 ms) : 0, 830051
GlobalTracer [baseline] (247.249 ms) : 0, 247249
GlobalTracer [candidate] (246.36 ms) : 0, 246360
AppSec [baseline] (57.585 ms) : 0, 57585
AppSec [candidate] (58.043 ms) : 0, 58043
IAST [baseline] (21.988 ms) : 0, 21988
IAST [candidate] (20.807 ms) : 0, 20807
Remote Config [baseline] (658.448 µs) : 0, 658
Remote Config [candidate] (647.957 µs) : 0, 648
Telemetry [baseline] (8.724 ms) : 0, 8724
Telemetry [candidate] (8.556 ms) : 0, 8556
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 12 metrics, 16 unstable metrics. Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.46.0-SNAPSHOT~94da60d255, baseline=1.46.0-SNAPSHOT~693c605f76
dateFormat X
axisFormat %s
section baseline
no_agent (1.354 ms) : 1334, 1373
. : milestone, 1354,
appsec (1.749 ms) : 1725, 1773
. : milestone, 1749,
appsec_no_iast (1.76 ms) : 1738, 1783
. : milestone, 1760,
iast (1.522 ms) : 1498, 1546
. : milestone, 1522,
profiling (1.544 ms) : 1519, 1568
. : milestone, 1544,
tracing (1.492 ms) : 1469, 1516
. : milestone, 1492,
section candidate
no_agent (1.367 ms) : 1348, 1386
. : milestone, 1367,
appsec (1.756 ms) : 1732, 1780
. : milestone, 1756,
appsec_no_iast (1.771 ms) : 1745, 1796
. : milestone, 1771,
iast (1.513 ms) : 1488, 1537
. : milestone, 1513,
profiling (1.523 ms) : 1498, 1548
. : milestone, 1523,
tracing (1.49 ms) : 1466, 1515
. : milestone, 1490,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.46.0-SNAPSHOT~94da60d255, baseline=1.46.0-SNAPSHOT~693c605f76
dateFormat X
axisFormat %s
section baseline
no_agent (375.441 µs) : 355, 396
. : milestone, 375,
iast (501.576 µs) : 480, 523
. : milestone, 502,
iast_FULL (743.451 µs) : 721, 765
. : milestone, 743,
iast_GLOBAL (555.976 µs) : 534, 578
. : milestone, 556,
iast_HARDCODED_SECRET_DISABLED (506.993 µs) : 486, 528
. : milestone, 507,
iast_INACTIVE (460.013 µs) : 438, 482
. : milestone, 460,
iast_TELEMETRY_OFF (493.504 µs) : 472, 515
. : milestone, 494,
tracing (450.3 µs) : 430, 471
. : milestone, 450,
section candidate
no_agent (384.182 µs) : 363, 405
. : milestone, 384,
iast (502.874 µs) : 481, 525
. : milestone, 503,
iast_FULL (744.293 µs) : 722, 766
. : milestone, 744,
iast_GLOBAL (553.685 µs) : 531, 576
. : milestone, 554,
iast_HARDCODED_SECRET_DISABLED (507.398 µs) : 486, 529
. : milestone, 507,
iast_INACTIVE (454.048 µs) : 433, 475
. : milestone, 454,
iast_TELEMETRY_OFF (495.572 µs) : 474, 517
. : milestone, 496,
tracing (456.306 µs) : 435, 478
. : milestone, 456,
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.46.0-SNAPSHOT~94da60d255, baseline=1.46.0-SNAPSHOT~693c605f76
dateFormat X
axisFormat %s
section baseline
no_agent (1.479 ms) : 1467, 1490
. : milestone, 1479,
appsec (2.371 ms) : 2328, 2415
. : milestone, 2371,
iast (2.112 ms) : 2058, 2166
. : milestone, 2112,
iast_GLOBAL (2.154 ms) : 2100, 2209
. : milestone, 2154,
profiling (1.976 ms) : 1932, 2020
. : milestone, 1976,
tracing (1.946 ms) : 1905, 1988
. : milestone, 1946,
section candidate
no_agent (1.478 ms) : 1466, 1490
. : milestone, 1478,
appsec (2.355 ms) : 2312, 2397
. : milestone, 2355,
iast (2.109 ms) : 2055, 2163
. : milestone, 2109,
iast_GLOBAL (2.159 ms) : 2104, 2214
. : milestone, 2159,
profiling (2.456 ms) : 2212, 2701
. : milestone, 2456,
tracing (1.956 ms) : 1914, 1998
. : milestone, 1956,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.46.0-SNAPSHOT~94da60d255, baseline=1.46.0-SNAPSHOT~693c605f76
dateFormat X
axisFormat %s
section baseline
no_agent (15.041 s) : 15041000, 15041000
. : milestone, 15041000,
appsec (14.973 s) : 14973000, 14973000
. : milestone, 14973000,
iast (18.521 s) : 18521000, 18521000
. : milestone, 18521000,
iast_GLOBAL (18.064 s) : 18064000, 18064000
. : milestone, 18064000,
profiling (15.733 s) : 15733000, 15733000
. : milestone, 15733000,
tracing (15.052 s) : 15052000, 15052000
. : milestone, 15052000,
section candidate
no_agent (15.024 s) : 15024000, 15024000
. : milestone, 15024000,
appsec (14.971 s) : 14971000, 14971000
. : milestone, 14971000,
iast (18.547 s) : 18547000, 18547000
. : milestone, 18547000,
iast_GLOBAL (17.761 s) : 17761000, 17761000
. : milestone, 17761000,
profiling (15.09 s) : 15090000, 15090000
. : milestone, 15090000,
tracing (15.163 s) : 15163000, 15163000
. : milestone, 15163000,
|
e6257ec
to
44ccc6c
Compare
...rc/main/java/datadog/trace/instrumentation/datastax/cassandra4/CassandraClientDecorator.java
Show resolved
Hide resolved
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.
Nice refactoring and good use of a feature-flag.
Will there be a documentation update for this?
44ccc6c
to
94da60d
Compare
Thanks Stuart. Yes I've few updates in the doc (also for this PR) to do as soon as 1.46.0 will be out |
| Package | Type | Package file | Manager | Update | Change | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-datastore](https://github.com/googleapis/java-datastore) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `2.25.4` -> `2.26.0` | | [com.datadoghq:dd-trace-api](https://github.com/datadog/dd-trace-java) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `1.45.2` -> `1.46.0` | | [com.datadoghq:dd-trace-ot](https://github.com/datadog/dd-trace-java) | dependencies | misk/gradle/libs.versions.toml | gradle | minor | `1.45.2` -> `1.46.0` | | [software.amazon.awssdk:sdk-core](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.30.9` -> `2.30.10` | | [software.amazon.awssdk:dynamodb-enhanced](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.30.9` -> `2.30.10` | | [software.amazon.awssdk:dynamodb](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.30.9` -> `2.30.10` | | [software.amazon.awssdk:aws-core](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.30.9` -> `2.30.10` | | [software.amazon.awssdk:bom](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.30.9` -> `2.30.10` | | [software.amazon.awssdk:auth](https://aws.amazon.com/sdkforjava) | dependencies | misk/gradle/libs.versions.toml | gradle | patch | `2.30.9` -> `2.30.10` | --- ### Release Notes <details> <summary>googleapis/java-datastore (com.google.cloud:google-cloud-datastore)</summary> ### [`v2.26.0`](https://github.com/googleapis/java-datastore/blob/HEAD/CHANGELOG.md#2260-2025-01-29) ##### Features - Add firestoreInDatastoreMode for datastore emulator ([#​1698](googleapis/java-datastore#1698)) ([50f106d](googleapis/java-datastore@50f106d)) ##### Dependencies - Update dependency com.google.cloud:sdk-platform-java-config to v3.42.0 ([#​1725](googleapis/java-datastore#1725)) ([1cbaf22](googleapis/java-datastore@1cbaf22)) </details> <details> <summary>datadog/dd-trace-java (com.datadoghq:dd-trace-api)</summary> ### [`v1.46.0`](https://github.com/DataDog/dd-trace-java/releases/tag/v1.46.0): 1.46.0 ##### Breaking Changes > \[!WARNING] > jnr-unixsocket is now an external dependency of dd-trace-ot and must be included when deploying dd-trace-ot. > \[!NOTE] > The API `TracerScope.setAsync(boolean)`, used to manually control asynchronous span propagation, does no more apply to the scope instance but to the active span scope. ##### Components ##### Application Security Management (IAST) - 🐛 Fix String.replace instrumentation for IAST ([#​8281](DataDog/dd-trace-java#8281) - [@​Mariovido](https://github.com/Mariovido)) - ✨ Apply the standard nomenclature to the stacktrace configs ([#​8244](DataDog/dd-trace-java#8244) - [@​jandro996](https://github.com/jandro996)) - 🐛 Exclude false positive weak randomness ([#​8232](DataDog/dd-trace-java#8232) - [@​jandro996](https://github.com/jandro996)) - ✨ Propagation of translateEscapes of String class ([#​8186](DataDog/dd-trace-java#8186) - [@​sezen-datadog](https://github.com/sezen-datadog)) - ✨ Add security control metrics ([#​8175](DataDog/dd-trace-java#8175) - [@​jandro996](https://github.com/jandro996)) - ✨ Increase IAST propagation to StringBuffer setLength ([#​8128](DataDog/dd-trace-java#8128) - [@​Mariovido](https://github.com/Mariovido)) - ✨ Add IAST taint tracking for DB values ([#​8072](DataDog/dd-trace-java#8072) - [@​Mariovido](https://github.com/Mariovido)) ##### Application Security Management (WAF) - 🐛 Prevents a NPE when there is no subscriber for user events ([#​8258](DataDog/dd-trace-java#8258) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) - ✨ Apply the standard nomenclature to the stacktrace configs ([#​8244](DataDog/dd-trace-java#8244) - [@​jandro996](https://github.com/jandro996)) - 🐛 Ensure cached subscriptions are cleared on reconfiguration via RC ([#​8229](DataDog/dd-trace-java#8229) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) - ✨ Add support for session tracking in Vertx ([#​8167](DataDog/dd-trace-java#8167) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) - ✨ Create span tag: \_dd.appsec.rasp.timeout ([#​8269](DataDog/dd-trace-java#8269) - [@​Mariovido](https://github.com/Mariovido)) ##### Build & Tooling - 🐛 Ensure shaded helpers have unique names when injected into class-loaders ([#​8192](DataDog/dd-trace-java#8192) - [@​mcculls](https://github.com/mcculls)) ##### Configuration at Runtime - 🐛 Remove filtering of `DD_SERVICE` and `DD_ENV` from the tracer ([#​8176](DataDog/dd-trace-java#8176) - [@​mhlidd](https://github.com/mhlidd)) ##### Continuous Integration Visibility - 🧹 Generalize TestRetryPolicy to TestExecutionPolicy ([#​8302](DataDog/dd-trace-java#8302) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - 🧹 Parallelize CI Visibility settings requests ([#​8299](DataDog/dd-trace-java#8299) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - 🧹 Generalize test retry logic ([#​8289](DataDog/dd-trace-java#8289) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - 🧹 Generalize tests skipping logic ([#​8288](DataDog/dd-trace-java#8288) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - 🧹 Remove skip and shouldBeSkipped methods from TestEventsHandler in favor of isSkippable ([#​8286](DataDog/dd-trace-java#8286) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - ✨⚡ Optimize Git repository information computation ([#​8270](DataDog/dd-trace-java#8270) - [@​dougqh](https://github.com/dougqh)) - ✨ Always request known tests from the backend ([#​8268](DataDog/dd-trace-java#8268) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - ✨ Fix NPE when trying to get retry analyzer in Test NG ([#​8253](DataDog/dd-trace-java#8253) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - 🐛 Set test framework and test framework version tags atomically ([#​8252](DataDog/dd-trace-java#8252) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - ✨ Add debug logging to Android Gradle module layout logic ([#​8251](DataDog/dd-trace-java#8251) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - 🐛 Fix source and destination folders computation for Android Gradle projects ([#​8190](DataDog/dd-trace-java#8190) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) - ✨ Add basic Scala Weaver sbt support ([#​8189](DataDog/dd-trace-java#8189) - [@​daniel-mohedano](https://github.com/daniel-mohedano)) - ✨ Implement impacted tests detection ([#​8188](DataDog/dd-trace-java#8188) - [@​nikita-tkachenko-datadog](https://github.com/nikita-tkachenko-datadog)) ##### Data Streams Monitoring - ✨ Change hash computation for protobuf to better represent impacting changes + save proto number in schema ([#​8201](DataDog/dd-trace-java#8201) - [@​vandonr](https://github.com/vandonr)) ##### Database Monitoring - Add peer service tag in dbm sql commenter ([#​7913](DataDog/dd-trace-java#7913) - [@​jordan-wong](https://github.com/jordan-wong)) ##### Dynamic Instrumentation - ✨ Add support for SymDB to scan directories ([#​8306](DataDog/dd-trace-java#8306) - [@​jpbempel](https://github.com/jpbempel)) - ✨ Add SymDB report for any jar scanning failures ([#​8300](DataDog/dd-trace-java#8300) - [@​jpbempel](https://github.com/jpbempel)) - ✨ Use two budgets depending on type ([#​8283](DataDog/dd-trace-java#8283) - [@​evanchooly](https://github.com/evanchooly)) - ✨ Institute a 10 snapshot per probe per trace budget ([#​8277](DataDog/dd-trace-java#8277) - [@​evanchooly](https://github.com/evanchooly)) - 🐛 Avoid double snapshots for Exception Replay ([#​8273](DataDog/dd-trace-java#8273) - [@​jpbempel](https://github.com/jpbempel)) - ✨ Simplify code origins. Separate out snapshot generation. ([#​8263](DataDog/dd-trace-java#8263) - [@​evanchooly](https://github.com/evanchooly)) - ✨ Add Exception probe custom instrumentation ([#​8230](DataDog/dd-trace-java#8230) - [@​jpbempel](https://github.com/jpbempel)) - ✨ Enhance log probes to honor debug session tags ([#​8215](DataDog/dd-trace-java#8215) - [@​evanchooly](https://github.com/evanchooly)) - 🐛 Don't redact env tokens from debugger probe snapshots ([#​8211](DataDog/dd-trace-java#8211) - [@​watson](https://github.com/watson)) - ✨⚡ Move Trace/SpanId capture at commit time ([#​8184](DataDog/dd-trace-java#8184) - [@​jpbempel](https://github.com/jpbempel)) - 🐛 Capture values at entry for method probe ([#​8169](DataDog/dd-trace-java#8169) - [@​jpbempel](https://github.com/jpbempel)) ##### JMX fetch - 🐛 Mute JMXFetch Shutdown in progress error ([#​8068](DataDog/dd-trace-java#8068) - [@​ygree](https://github.com/ygree)) ##### OpenTracing -⚠️ 🧹 Make jnr-unixsocket an explicit dependency of dd-trace-ot ([#​8307](DataDog/dd-trace-java#8307) - [@​mcculls](https://github.com/mcculls)) ##### Profiling - 🐛 Avoid unsupported API call for creating folders on windows ([#​8304](DataDog/dd-trace-java#8304) - [@​jbachorik](https://github.com/jbachorik)) - ✨ Tag profiles for serverless ([#​8279](DataDog/dd-trace-java#8279) - [@​jbachorik](https://github.com/jbachorik)) - ✨ add queue type and length to queue events ([#​8242](DataDog/dd-trace-java#8242) - [@​richardstartin](https://github.com/richardstartin)) - 🐛 TempLocationManager Fixes and Improvements ([#​8191](DataDog/dd-trace-java#8191) - [@​jbachorik](https://github.com/jbachorik)) - ✨ Bump ddprof to 1.18.0 ([#​8173](DataDog/dd-trace-java#8173) - [@​jbachorik](https://github.com/jbachorik)) - ✨ Report profiler initialization and configuration errors to telemetry ([#​8171](DataDog/dd-trace-java#8171) - [@​jbachorik](https://github.com/jbachorik)) ##### Telemetry - ✨ Add pending traces report in tracer flares ([#​8053](DataDog/dd-trace-java#8053) - [@​mhlidd](https://github.com/mhlidd)) ##### Testing - ✨ Test http server requests in parallel ([#​8222](DataDog/dd-trace-java#8222) - [@​amarziali](https://github.com/amarziali)) ##### Trace context propagation - ✨ Add non default propagator registration ([#​8310](DataDog/dd-trace-java#8310) - [@​PerfectSlayer](https://github.com/PerfectSlayer)) ##### Tracer core - ✨ Probe for existence of IBMSASL or ACCP security providers ([#​8276](DataDog/dd-trace-java#8276) - [@​mcculls](https://github.com/mcculls)) - ✨⚡ Overhead improvement to agent feedback based sampling ([#​8265](DataDog/dd-trace-java#8265) - [@​dougqh](https://github.com/dougqh)) - 🧹 Move async propagation API from scope to tracer ([#​8231](DataDog/dd-trace-java#8231) - [@​PerfectSlayer](https://github.com/PerfectSlayer)) - ✨ Introduce context propagation API ([#​8161](DataDog/dd-trace-java#8161) - [@​PerfectSlayer](https://github.com/PerfectSlayer)) - ✨🧪 Use env-entry to add tags per webapp deployment ([#​8138](DataDog/dd-trace-java#8138) - [@​amarziali](https://github.com/amarziali)) - ✨ Introduce context helpers API ([#​8134](DataDog/dd-trace-java#8134) - [@​PerfectSlayer](https://github.com/PerfectSlayer)) - ✨ Support IPv6 values for `DD_AGENT_HOST` and `DD_TRACE_AGENT_URL` ([#​7984](DataDog/dd-trace-java#7984) - [@​mhlidd](https://github.com/mhlidd)) ##### Instrumentations ##### Apache HttpComponents - 🐛 Properly finish spans and support latest apache httpclient5 ([#​8272](DataDog/dd-trace-java#8272) - [@​amarziali](https://github.com/amarziali)) ##### AWS Lambda instrumentation - 🐛 Properly capture lambda payloads for all handler types. ([#​8264](DataDog/dd-trace-java#8264) - [@​purple4reina](https://github.com/purple4reina)) ##### AWS S3 instrumentation - 💡 Create S3 instrumentation + add span pointers ([#​8075](DataDog/dd-trace-java#8075) - [@​nhulston](https://github.com/nhulston)) ##### AWS SDK instrumentation - 🐛 Revert "Add avoid double instrumenting lambda non-streaming handlers." ([#​8247](DataDog/dd-trace-java#8247) - [@​nhulston](https://github.com/nhulston)) ##### Cassandra - ✨ Allow extracting keyspace from statement result ([#​8239](DataDog/dd-trace-java#8239) - [@​amarziali](https://github.com/amarziali)) ##### Core Java language instrumentation - ✨ Propagation of translateEscapes of String class ([#​8186](DataDog/dd-trace-java#8186) - [@​sezen-datadog](https://github.com/sezen-datadog)) ##### Eclipse Vert.x instrumentation - 🐛 Fix vertx worker propagation and error handling ([#​8237](DataDog/dd-trace-java#8237) - [@​amarziali](https://github.com/amarziali)) - ✨ Support vertx 5 ([#​8220](DataDog/dd-trace-java#8220) - [@​amarziali](https://github.com/amarziali)) - ✨ Add support for session tracking in Vertx ([#​8167](DataDog/dd-trace-java#8167) - [@​manuel-alvarez-alvarez](https://github.com/manuel-alvarez-alvarez)) ##### Kafka instrumentation - 🐛 Prevent possible NPE calculating Kafka record header size ([#​8292](DataDog/dd-trace-java#8292) - [@​ygree](https://github.com/ygree)) ##### Mule instrumentation - 🐛 Fix crash using Mule with JPMS ([#​8187](DataDog/dd-trace-java#8187) - [@​amarziali](https://github.com/amarziali)) ##### Protocol Buffer instrumentation - ✨ Change hash computation for protobuf to better represent impacting changes + save proto number in schema ([#​8201](DataDog/dd-trace-java#8201) - [@​vandonr](https://github.com/vandonr)) ##### Spring instrumentation - 🐛 Preserve getQualifier from spring scheduling runnables ([#​8293](DataDog/dd-trace-java#8293) - [@​amarziali](https://github.com/amarziali)) </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**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- 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: bb09d47e4eed77a003f630273b4d0a84003eb899
What Does This Do
Today the
db.instance
tag for cassandra is obtained by using the keyspace used to initialize the session.Using a keyspace to create a session is not mandatory but if it's specified it will be the one used by default.
However, a different keyspace can be used in the cql statements and in reality is that one that should be used instead.
This PR allows sourcing the
db.instance
from the metadata of the query results. It works only with statements that produces results (i.e. not with query likeDROP NAMESPACE...
, etc.. )The feature is opt-in since it would be a breaking change. In fact, settings a different
db.instance
would impact:In order to activate this feature:
-Ddd.trace.cassandra.keyspace.statement.extraction.enabled=true
DD_TRACE_CASSANDRA_KEYSPACE_STATEMENT_EXTRACTION_ENABLED=true
Motivation
Additional Notes
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: APMS-14356