Extract trace context from embedded SQS message attribute '_datadog'#5920
Merged
Extract trace context from embedded SQS message attribute '_datadog'#5920
Conversation
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 62 cases. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.22.0-SNAPSHOT~d45b54c0b6, baseline=1.22.0-SNAPSHOT~ecccc528c0
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.003 s) : 0, 1003079
Total [baseline] (8.676 s) : 0, 8676027
Agent [candidate] (1.013 s) : 0, 1013379
Total [candidate] (8.658 s) : 0, 8658185
section appsec
Agent [baseline] (1.09 s) : 0, 1090474
Total [baseline] (8.727 s) : 0, 8727329
Agent [candidate] (1.093 s) : 0, 1092643
Total [candidate] (8.718 s) : 0, 8717974
section iast
Agent [baseline] (1.113 s) : 0, 1112927
Total [baseline] (9.24 s) : 0, 9239696
Agent [candidate] (1.115 s) : 0, 1115401
Total [candidate] (9.174 s) : 0, 9173999
section profiling
Agent [baseline] (1.174 s) : 0, 1173686
Total [baseline] (8.887 s) : 0, 8886912
Agent [candidate] (1.179 s) : 0, 1178713
Total [candidate] (8.867 s) : 0, 8866914
gantt
title insecure-bank - break down per module: candidate=1.22.0-SNAPSHOT~d45b54c0b6, baseline=1.22.0-SNAPSHOT~ecccc528c0
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (621.109 ms) : 0, 621109
BytebuddyAgent [candidate] (627.38 ms) : 0, 627380
GlobalTracer [baseline] (292.303 ms) : 0, 292303
GlobalTracer [candidate] (295.883 ms) : 0, 295883
AppSec [baseline] (48.888 ms) : 0, 48888
AppSec [candidate] (48.984 ms) : 0, 48984
Remote Config [baseline] (671.864 µs) : 0, 672
Remote Config [candidate] (696.159 µs) : 0, 696
Telemetry [baseline] (5.972 ms) : 0, 5972
Telemetry [candidate] (6.013 ms) : 0, 6013
section appsec
BytebuddyAgent [baseline] (622.185 ms) : 0, 622185
BytebuddyAgent [candidate] (623.473 ms) : 0, 623473
GlobalTracer [baseline] (292.326 ms) : 0, 292326
GlobalTracer [candidate] (293.035 ms) : 0, 293035
AppSec [baseline] (135.167 ms) : 0, 135167
AppSec [candidate] (135.292 ms) : 0, 135292
Remote Config [baseline] (639.882 µs) : 0, 640
Remote Config [candidate] (638.901 µs) : 0, 639
Telemetry [baseline] (5.884 ms) : 0, 5884
Telemetry [candidate] (5.855 ms) : 0, 5855
section iast
BytebuddyAgent [baseline] (735.266 ms) : 0, 735266
BytebuddyAgent [candidate] (736.493 ms) : 0, 736493
GlobalTracer [baseline] (276.954 ms) : 0, 276954
GlobalTracer [candidate] (278.072 ms) : 0, 278072
AppSec [baseline] (45.715 ms) : 0, 45715
AppSec [candidate] (45.897 ms) : 0, 45897
IAST [baseline] (14.455 ms) : 0, 14455
IAST [candidate] (14.359 ms) : 0, 14359
Remote Config [baseline] (563.164 µs) : 0, 563
Remote Config [candidate] (559.267 µs) : 0, 559
Telemetry [baseline] (5.757 ms) : 0, 5757
Telemetry [candidate] (5.785 ms) : 0, 5785
section profiling
BytebuddyAgent [baseline] (632.378 ms) : 0, 632378
BytebuddyAgent [candidate] (635.028 ms) : 0, 635028
GlobalTracer [baseline] (352.828 ms) : 0, 352828
GlobalTracer [candidate] (354.641 ms) : 0, 354641
AppSec [baseline] (48.807 ms) : 0, 48807
AppSec [candidate] (48.682 ms) : 0, 48682
Remote Config [baseline] (638.815 µs) : 0, 639
Remote Config [candidate] (665.188 µs) : 0, 665
Telemetry [baseline] (5.991 ms) : 0, 5991
Telemetry [candidate] (5.984 ms) : 0, 5984
ProfilingAgent [baseline] (80.141 ms) : 0, 80141
ProfilingAgent [candidate] (80.663 ms) : 0, 80663
Profiling [baseline] (80.166 ms) : 0, 80166
Profiling [candidate] (80.688 ms) : 0, 80688
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.22.0-SNAPSHOT~d45b54c0b6, baseline=1.22.0-SNAPSHOT~ecccc528c0
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.019 s) : 0, 1018753
Total [baseline] (9.292 s) : 0, 9291655
Agent [candidate] (1.006 s) : 0, 1005710
Total [candidate] (9.215 s) : 0, 9214677
section appsec
Agent [baseline] (1.091 s) : 0, 1090549
Total [baseline] (9.272 s) : 0, 9272336
Agent [candidate] (1.109 s) : 0, 1109111
Total [candidate] (9.297 s) : 0, 9297476
section iast
Agent [baseline] (1.117 s) : 0, 1116558
Total [baseline] (9.468 s) : 0, 9467659
Agent [candidate] (1.12 s) : 0, 1119530
Total [candidate] (9.458 s) : 0, 9457699
section profiling
Agent [baseline] (1.175 s) : 0, 1174545
Total [baseline] (9.403 s) : 0, 9403489
Agent [candidate] (1.191 s) : 0, 1191430
Total [candidate] (9.452 s) : 0, 9451943
gantt
title petclinic - break down per module: candidate=1.22.0-SNAPSHOT~d45b54c0b6, baseline=1.22.0-SNAPSHOT~ecccc528c0
dateFormat X
axisFormat %s
section tracing
BytebuddyAgent [baseline] (631.09 ms) : 0, 631090
BytebuddyAgent [candidate] (622.163 ms) : 0, 622163
GlobalTracer [baseline] (297.038 ms) : 0, 297038
GlobalTracer [candidate] (294.14 ms) : 0, 294140
AppSec [baseline] (49.074 ms) : 0, 49074
AppSec [candidate] (48.569 ms) : 0, 48569
Remote Config [baseline] (683.209 µs) : 0, 683
Remote Config [candidate] (667.59 µs) : 0, 668
Telemetry [baseline] (6.055 ms) : 0, 6055
Telemetry [candidate] (5.989 ms) : 0, 5989
section appsec
BytebuddyAgent [baseline] (622.507 ms) : 0, 622507
BytebuddyAgent [candidate] (632.879 ms) : 0, 632879
GlobalTracer [baseline] (292.232 ms) : 0, 292232
GlobalTracer [candidate] (298.219 ms) : 0, 298219
AppSec [baseline] (134.942 ms) : 0, 134942
AppSec [candidate] (136.63 ms) : 0, 136630
Remote Config [baseline] (636.187 µs) : 0, 636
Remote Config [candidate] (656.535 µs) : 0, 657
Telemetry [baseline] (5.862 ms) : 0, 5862
Telemetry [candidate] (5.953 ms) : 0, 5953
section iast
BytebuddyAgent [baseline] (737.438 ms) : 0, 737438
BytebuddyAgent [candidate] (739.252 ms) : 0, 739252
GlobalTracer [baseline] (278.067 ms) : 0, 278067
GlobalTracer [candidate] (278.926 ms) : 0, 278926
AppSec [baseline] (45.864 ms) : 0, 45864
AppSec [candidate] (46.044 ms) : 0, 46044
IAST [baseline] (14.469 ms) : 0, 14469
IAST [candidate] (14.583 ms) : 0, 14583
Remote Config [baseline] (558.791 µs) : 0, 559
Remote Config [candidate] (563.575 µs) : 0, 564
Telemetry [baseline] (5.743 ms) : 0, 5743
Telemetry [candidate] (5.82 ms) : 0, 5820
section profiling
BytebuddyAgent [baseline] (632.522 ms) : 0, 632522
BytebuddyAgent [candidate] (643.672 ms) : 0, 643672
GlobalTracer [baseline] (352.814 ms) : 0, 352814
GlobalTracer [candidate] (357.155 ms) : 0, 357155
AppSec [baseline] (48.752 ms) : 0, 48752
AppSec [candidate] (49.276 ms) : 0, 49276
Remote Config [baseline] (645.205 µs) : 0, 645
Remote Config [candidate] (656.022 µs) : 0, 656
Telemetry [baseline] (6.039 ms) : 0, 6039
Telemetry [candidate] (6.08 ms) : 0, 6080
ProfilingAgent [baseline] (80.885 ms) : 0, 80885
ProfilingAgent [candidate] (80.786 ms) : 0, 80786
Profiling [baseline] (80.91 ms) : 0, 80910
Profiling [candidate] (80.811 ms) : 0, 80811
LoadParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 24 cases. Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.22.0-SNAPSHOT~d45b54c0b6, baseline=1.22.0-SNAPSHOT~ecccc528c0
dateFormat X
axisFormat %s
section baseline
no_agent (367.775 µs) : 348, 387
. : milestone, 368,
appsec (672.692 µs) : 652, 693
. : milestone, 673,
iast (467.795 µs) : 447, 489
. : milestone, 468,
iast_FULL (514.86 µs) : 494, 535
. : milestone, 515,
iast_INACTIVE (428.489 µs) : 408, 449
. : milestone, 428,
profiling (444.539 µs) : 423, 467
. : milestone, 445,
tracing (449.013 µs) : 427, 471
. : milestone, 449,
section candidate
no_agent (363.522 µs) : 344, 383
. : milestone, 364,
appsec (672.262 µs) : 652, 693
. : milestone, 672,
iast (460.001 µs) : 439, 481
. : milestone, 460,
iast_FULL (528.415 µs) : 508, 549
. : milestone, 528,
iast_INACTIVE (438.768 µs) : 417, 461
. : milestone, 439,
profiling (446.781 µs) : 426, 467
. : milestone, 447,
tracing (438.474 µs) : 417, 460
. : milestone, 438,
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.22.0-SNAPSHOT~d45b54c0b6, baseline=1.22.0-SNAPSHOT~ecccc528c0
dateFormat X
axisFormat %s
section baseline
no_agent (1.337 ms) : 1318, 1356
. : milestone, 1337,
appsec (1.694 ms) : 1670, 1719
. : milestone, 1694,
iast (1.462 ms) : 1437, 1486
. : milestone, 1462,
profiling (1.47 ms) : 1443, 1496
. : milestone, 1470,
tracing (1.45 ms) : 1425, 1475
. : milestone, 1450,
section candidate
no_agent (1.343 ms) : 1324, 1362
. : milestone, 1343,
appsec (1.693 ms) : 1668, 1718
. : milestone, 1693,
iast (1.462 ms) : 1437, 1486
. : milestone, 1462,
profiling (1.462 ms) : 1437, 1487
. : milestone, 1462,
tracing (1.455 ms) : 1430, 1479
. : milestone, 1455,
|
08474ef to
a8a986a
Compare
6acdb58 to
32350ac
Compare
dd68cd9 to
9c2ff00
Compare
...va-sqs-2.0/src/main/java/datadog/trace/instrumentation/aws/v2/sqs/MessageExtractAdapter.java
Outdated
Show resolved
Hide resolved
5f49d35 to
8123129
Compare
The '_datadog' message attribute is used by DSM and certain language tracers to propagate context instead of AWS' 'AWSTraceHeader'. The attribute contains trace context as a JSON string, or encoded with Base64 as a binary value.
8123129 to
d45b54c
Compare
PerfectSlayer
approved these changes
Sep 22, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Motivation
The
_datadogmessage attribute is used by DSM and certain language tracers to propagate context instead of AWS'AWSTraceHeader. The attribute contains trace context as a JSON string, or encoded with Base64 as a binary value.