-
Notifications
You must be signed in to change notification settings - Fork 315
check for empty env when setting cloud payload tagging #9887
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
base: master
Are you sure you want to change the base?
Conversation
|
🎯 Code Coverage 🔗 Commit SHA: c46f528 | Docs | Datadog PR Page | Was this helpful? Give us feedback! |
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 54 metrics, 11 unstable metrics. Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.55.0-SNAPSHOT~c46f5287f1, baseline=1.55.0-SNAPSHOT~9b91826873
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.035 s) : 0, 1034753
Total [baseline] (4.301 s) : 0, 4301373
Agent [candidate] (1.048 s) : 0, 1048488
Total [candidate] (10.931 s) : 0, 10931269
section appsec
Agent [baseline] (1.223 s) : 0, 1222998
Total [baseline] (11.091 s) : 0, 11090658
Agent [candidate] (1.214 s) : 0, 1213662
Total [candidate] (11.078 s) : 0, 11077563
section iast
Agent [baseline] (1.172 s) : 0, 1171540
Total [baseline] (11.218 s) : 0, 11217645
Agent [candidate] (1.169 s) : 0, 1168582
Total [candidate] (11.189 s) : 0, 11188894
section profiling
Agent [baseline] (1.182 s) : 0, 1182164
Total [baseline] (10.991 s) : 0, 10990587
Agent [candidate] (1.18 s) : 0, 1179812
Total [candidate] (10.949 s) : 0, 10948565
gantt
title petclinic - break down per module: candidate=1.55.0-SNAPSHOT~c46f5287f1, baseline=1.55.0-SNAPSHOT~9b91826873
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.595 ms) : 0, 1595
crashtracking [candidate] (1.498 ms) : 0, 1498
BytebuddyAgent [baseline] (706.84 ms) : 0, 706840
BytebuddyAgent [candidate] (716.068 ms) : 0, 716068
GlobalTracer [baseline] (245.114 ms) : 0, 245114
GlobalTracer [candidate] (248.172 ms) : 0, 248172
AppSec [baseline] (32.529 ms) : 0, 32529
AppSec [candidate] (32.784 ms) : 0, 32784
Debugger [baseline] (6.404 ms) : 0, 6404
Debugger [candidate] (6.54 ms) : 0, 6540
Remote Config [baseline] (698.79 µs) : 0, 699
Remote Config [candidate] (683.599 µs) : 0, 684
Telemetry [baseline] (16.049 ms) : 0, 16049
Telemetry [candidate] (14.576 ms) : 0, 14576
Flare Poller [baseline] (4.163 ms) : 0, 4163
Flare Poller [candidate] (6.577 ms) : 0, 6577
section appsec
crashtracking [baseline] (1.513 ms) : 0, 1513
crashtracking [candidate] (1.485 ms) : 0, 1485
BytebuddyAgent [baseline] (736.646 ms) : 0, 736646
BytebuddyAgent [candidate] (732.862 ms) : 0, 732862
GlobalTracer [baseline] (240.819 ms) : 0, 240819
GlobalTracer [candidate] (238.474 ms) : 0, 238474
AppSec [baseline] (177.401 ms) : 0, 177401
AppSec [candidate] (175.066 ms) : 0, 175066
Debugger [baseline] (6.117 ms) : 0, 6117
Debugger [candidate] (5.991 ms) : 0, 5991
Remote Config [baseline] (657.953 µs) : 0, 658
Remote Config [candidate] (632.115 µs) : 0, 632
Telemetry [baseline] (8.781 ms) : 0, 8781
Telemetry [candidate] (8.526 ms) : 0, 8526
Flare Poller [baseline] (4.084 ms) : 0, 4084
Flare Poller [candidate] (4.014 ms) : 0, 4014
IAST [baseline] (25.544 ms) : 0, 25544
IAST [candidate] (25.269 ms) : 0, 25269
section iast
crashtracking [baseline] (1.488 ms) : 0, 1488
crashtracking [candidate] (1.477 ms) : 0, 1477
BytebuddyAgent [baseline] (830.86 ms) : 0, 830860
BytebuddyAgent [candidate] (828.038 ms) : 0, 828038
GlobalTracer [baseline] (236.257 ms) : 0, 236257
GlobalTracer [candidate] (235.85 ms) : 0, 235850
AppSec [baseline] (29.708 ms) : 0, 29708
AppSec [candidate] (30.881 ms) : 0, 30881
Debugger [baseline] (6.185 ms) : 0, 6185
Debugger [candidate] (6.253 ms) : 0, 6253
Remote Config [baseline] (604.06 µs) : 0, 604
Remote Config [candidate] (671.611 µs) : 0, 672
Telemetry [baseline] (8.498 ms) : 0, 8498
Telemetry [candidate] (8.641 ms) : 0, 8641
Flare Poller [baseline] (4.226 ms) : 0, 4226
Flare Poller [candidate] (4.168 ms) : 0, 4168
IAST [baseline] (32.209 ms) : 0, 32209
IAST [candidate] (31.121 ms) : 0, 31121
section profiling
ProfilingAgent [baseline] (110.239 ms) : 0, 110239
ProfilingAgent [candidate] (110.076 ms) : 0, 110076
crashtracking [baseline] (1.472 ms) : 0, 1472
crashtracking [candidate] (1.472 ms) : 0, 1472
BytebuddyAgent [baseline] (730.609 ms) : 0, 730609
BytebuddyAgent [candidate] (729.467 ms) : 0, 729467
GlobalTracer [baseline] (223.201 ms) : 0, 223201
GlobalTracer [candidate] (222.481 ms) : 0, 222481
AppSec [baseline] (32.566 ms) : 0, 32566
AppSec [candidate] (32.433 ms) : 0, 32433
Debugger [baseline] (9.954 ms) : 0, 9954
Debugger [candidate] (8.267 ms) : 0, 8267
Remote Config [baseline] (1.528 ms) : 0, 1528
Remote Config [candidate] (1.452 ms) : 0, 1452
Telemetry [baseline] (12.531 ms) : 0, 12531
Telemetry [candidate] (14.079 ms) : 0, 14079
Flare Poller [baseline] (4.1 ms) : 0, 4100
Flare Poller [candidate] (4.181 ms) : 0, 4181
Profiling [baseline] (110.945 ms) : 0, 110945
Profiling [candidate] (110.736 ms) : 0, 110736
Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.55.0-SNAPSHOT~c46f5287f1, baseline=1.55.0-SNAPSHOT~9b91826873
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.043 s) : 0, 1043416
Total [baseline] (8.727 s) : 0, 8727163
Agent [candidate] (1.032 s) : 0, 1031689
Total [candidate] (8.699 s) : 0, 8698962
section iast
Agent [baseline] (1.171 s) : 0, 1171050
Total [baseline] (9.395 s) : 0, 9395008
Agent [candidate] (1.167 s) : 0, 1166967
Total [candidate] (9.44 s) : 0, 9440154
gantt
title insecure-bank - break down per module: candidate=1.55.0-SNAPSHOT~c46f5287f1, baseline=1.55.0-SNAPSHOT~9b91826873
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.496 ms) : 0, 1496
crashtracking [candidate] (1.468 ms) : 0, 1468
BytebuddyAgent [baseline] (712.884 ms) : 0, 712884
BytebuddyAgent [candidate] (703.29 ms) : 0, 703290
GlobalTracer [baseline] (246.854 ms) : 0, 246854
GlobalTracer [candidate] (245.538 ms) : 0, 245538
AppSec [baseline] (32.605 ms) : 0, 32605
AppSec [candidate] (32.341 ms) : 0, 32341
Debugger [baseline] (6.44 ms) : 0, 6440
Debugger [candidate] (6.4 ms) : 0, 6400
Remote Config [baseline] (701.546 µs) : 0, 702
Remote Config [candidate] (683.027 µs) : 0, 683
Telemetry [baseline] (13.806 ms) : 0, 13806
Telemetry [candidate] (13.77 ms) : 0, 13770
Flare Poller [baseline] (7.22 ms) : 0, 7220
Flare Poller [candidate] (7.005 ms) : 0, 7005
section iast
crashtracking [baseline] (1.483 ms) : 0, 1483
crashtracking [candidate] (1.473 ms) : 0, 1473
BytebuddyAgent [baseline] (831.171 ms) : 0, 831171
BytebuddyAgent [candidate] (827.98 ms) : 0, 827980
GlobalTracer [baseline] (235.408 ms) : 0, 235408
GlobalTracer [candidate] (235.363 ms) : 0, 235363
AppSec [baseline] (29.395 ms) : 0, 29395
AppSec [candidate] (28.867 ms) : 0, 28867
Debugger [baseline] (6.121 ms) : 0, 6121
Debugger [candidate] (6.157 ms) : 0, 6157
Remote Config [baseline] (602.151 µs) : 0, 602
Remote Config [candidate] (613.592 µs) : 0, 614
Telemetry [baseline] (8.468 ms) : 0, 8468
Telemetry [candidate] (8.557 ms) : 0, 8557
Flare Poller [baseline] (4.175 ms) : 0, 4175
Flare Poller [candidate] (4.115 ms) : 0, 4115
IAST [baseline] (32.748 ms) : 0, 32748
IAST [candidate] (32.535 ms) : 0, 32535
LoadParameters
See matching parameters
SummaryFound 4 performance improvements and 3 performance regressions! Performance is the same for 5 metrics, 12 unstable metrics.
Request duration reports for petclinicgantt
title petclinic - request duration [CI 0.99] : candidate=1.55.0-SNAPSHOT~c46f5287f1, baseline=1.55.0-SNAPSHOT~9b91826873
dateFormat X
axisFormat %s
section baseline
no_agent (17.21 ms) : 17038, 17383
. : milestone, 17210,
appsec (20.368 ms) : 20160, 20577
. : milestone, 20368,
code_origins (18.503 ms) : 18317, 18688
. : milestone, 18503,
iast (19.752 ms) : 19550, 19953
. : milestone, 19752,
profiling (19.557 ms) : 19356, 19758
. : milestone, 19557,
tracing (18.447 ms) : 18264, 18630
. : milestone, 18447,
section candidate
no_agent (17.958 ms) : 17780, 18136
. : milestone, 17958,
appsec (20.797 ms) : 20588, 21006
. : milestone, 20797,
code_origins (18.759 ms) : 18566, 18952
. : milestone, 18759,
iast (18.542 ms) : 18358, 18726
. : milestone, 18542,
profiling (20.33 ms) : 20129, 20531
. : milestone, 20330,
tracing (18.431 ms) : 18245, 18616
. : milestone, 18431,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.55.0-SNAPSHOT~c46f5287f1, baseline=1.55.0-SNAPSHOT~9b91826873
dateFormat X
axisFormat %s
section baseline
no_agent (1.193 ms) : 1181, 1204
. : milestone, 1193,
iast (3.403 ms) : 3356, 3450
. : milestone, 3403,
iast_FULL (5.895 ms) : 5835, 5955
. : milestone, 5895,
iast_GLOBAL (3.642 ms) : 3589, 3695
. : milestone, 3642,
profiling (1.945 ms) : 1929, 1962
. : milestone, 1945,
tracing (1.823 ms) : 1808, 1838
. : milestone, 1823,
section candidate
no_agent (1.184 ms) : 1172, 1196
. : milestone, 1184,
iast (3.165 ms) : 3123, 3207
. : milestone, 3165,
iast_FULL (5.701 ms) : 5645, 5756
. : milestone, 5701,
iast_GLOBAL (3.443 ms) : 3394, 3491
. : milestone, 3443,
profiling (2.139 ms) : 2120, 2158
. : milestone, 2139,
tracing (1.79 ms) : 1775, 1804
. : milestone, 1790,
DacapoParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 10 metrics, 2 unstable metrics. Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.55.0-SNAPSHOT~c46f5287f1, baseline=1.55.0-SNAPSHOT~9b91826873
dateFormat X
axisFormat %s
section baseline
no_agent (1.472 ms) : 1460, 1483
. : milestone, 1472,
appsec (3.65 ms) : 3437, 3863
. : milestone, 3650,
iast (2.212 ms) : 2147, 2276
. : milestone, 2212,
iast_GLOBAL (2.25 ms) : 2186, 2315
. : milestone, 2250,
profiling (2.503 ms) : 2332, 2674
. : milestone, 2503,
tracing (2.038 ms) : 1988, 2089
. : milestone, 2038,
section candidate
no_agent (1.475 ms) : 1463, 1486
. : milestone, 1475,
appsec (3.712 ms) : 3494, 3930
. : milestone, 3712,
iast (2.221 ms) : 2156, 2285
. : milestone, 2221,
iast_GLOBAL (2.256 ms) : 2191, 2321
. : milestone, 2256,
profiling (2.079 ms) : 2025, 2132
. : milestone, 2079,
tracing (2.037 ms) : 1987, 2087
. : milestone, 2037,
Execution time for biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.55.0-SNAPSHOT~c46f5287f1, baseline=1.55.0-SNAPSHOT~9b91826873
dateFormat X
axisFormat %s
section baseline
no_agent (15.085 s) : 15085000, 15085000
. : milestone, 15085000,
appsec (14.781 s) : 14781000, 14781000
. : milestone, 14781000,
iast (18.538 s) : 18538000, 18538000
. : milestone, 18538000,
iast_GLOBAL (18.348 s) : 18348000, 18348000
. : milestone, 18348000,
profiling (15.347 s) : 15347000, 15347000
. : milestone, 15347000,
tracing (15.268 s) : 15268000, 15268000
. : milestone, 15268000,
section candidate
no_agent (15.375 s) : 15375000, 15375000
. : milestone, 15375000,
appsec (14.711 s) : 14711000, 14711000
. : milestone, 14711000,
iast (18.673 s) : 18673000, 18673000
. : milestone, 18673000,
iast_GLOBAL (18.251 s) : 18251000, 18251000
. : milestone, 18251000,
profiling (15.55 s) : 15550000, 15550000
. : milestone, 15550000,
tracing (15.456 s) : 15456000, 15456000
. : milestone, 15456000,
|
|
Hi! 👋 Thanks for your pull request! 🎉 To help us review it, please make sure to:
If you need help, please check our contributing guidelines. |
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.
General Question: If the config is set to a non-JSON-path value, or not "all", should the feature be turned off in the Config class?
|
@mhlidd, if we are to take the official documentation literally, the only time payload tagging is disabled is when the variables are empty or omitted. I do see how this could be misleading though because you can effectively turn on payload tagging by adding any value even if it is not "all". How I see it though, the paths are subtractive rather than additive. Meaning, default is to show every field, and for every valid path added, we show 1 less field. If the path is invalid its ignored |
Just want to make sure that this is aligned with the spec. From the spec, I see the following:
This seems a little contradictory to the behavior we see in the tracer. While the redaction behavior would not be turned on unless the JSON paths passed in are valid, the configs are still when adding AWS span tags at some point. ❓ Does the RFC spec mean that we want the span tag behavior to also be disabled when non-valid JSON paths are set for the environment variables. If so, we may need to modify the logic of verifying the logic of handling the Environment Variable values. |
|
I think this comes down to which source of truth we want to honor – the spec or the public documentation on datadog website. I believe @joeyzhao2018 (author of the spec) also decided to follow the public doc (but correct me if I'm wrong Joey. Either way we should update the spec accordingly) |
What Does This Do
Ensures if DD cloud trace payload tagging envs are present but empty (i.e the envs are set to empty string), the feature is turned off.
Motivation
Specifically in the lambda environment, users (or some instrumenation helpers such as datadog-cdk-constructs) may add the env without adding any value so that it defaults to disabled.
This is to make the feature visible for discovery purposes, but without forcing it as a default
read more here
APMSVLS-53