-
Notifications
You must be signed in to change notification settings - Fork 312
Throw InvalidBooleanValueException in ConfigConverter.booleanValueOf #9370
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 🔗 Commit SHA: ebfd052 | Docs | Was this helpful? Give us feedback! |
BenchmarksStartupParameters
See matching parameters
SummaryFound 0 performance improvements and 0 performance regressions! Performance is the same for 47 metrics, 12 unstable metrics. Startup time reports for insecure-bankgantt
title insecure-bank - global startup overhead: candidate=1.53.0-SNAPSHOT~ebfd052ede, baseline=1.53.0-SNAPSHOT~def5c6a361
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.046 s) : 0, 1045990
Total [baseline] (8.621 s) : 0, 8621311
Agent [candidate] (1.069 s) : 0, 1068574
Total [candidate] (8.665 s) : 0, 8665166
section iast
Agent [baseline] (1.193 s) : 0, 1193307
Total [baseline] (9.393 s) : 0, 9393215
Agent [candidate] (1.183 s) : 0, 1182704
Total [candidate] (9.395 s) : 0, 9395092
gantt
title insecure-bank - break down per module: candidate=1.53.0-SNAPSHOT~ebfd052ede, baseline=1.53.0-SNAPSHOT~def5c6a361
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.459 ms) : 0, 1459
crashtracking [candidate] (1.492 ms) : 0, 1492
BytebuddyAgent [baseline] (733.681 ms) : 0, 733681
BytebuddyAgent [candidate] (749.219 ms) : 0, 749219
GlobalTracer [baseline] (243.234 ms) : 0, 243234
GlobalTracer [candidate] (246.556 ms) : 0, 246556
AppSec [baseline] (30.322 ms) : 0, 30322
AppSec [candidate] (30.682 ms) : 0, 30682
Debugger [baseline] (6.115 ms) : 0, 6115
Debugger [candidate] (6.122 ms) : 0, 6122
Remote Config [baseline] (684.859 µs) : 0, 685
Remote Config [candidate] (690.09 µs) : 0, 690
Telemetry [baseline] (9.395 ms) : 0, 9395
Telemetry [candidate] (12.455 ms) : 0, 12455
section iast
crashtracking [baseline] (1.476 ms) : 0, 1476
crashtracking [candidate] (1.458 ms) : 0, 1458
BytebuddyAgent [baseline] (859.948 ms) : 0, 859948
BytebuddyAgent [candidate] (852.897 ms) : 0, 852897
GlobalTracer [baseline] (236.383 ms) : 0, 236383
GlobalTracer [candidate] (233.688 ms) : 0, 233688
AppSec [baseline] (30.055 ms) : 0, 30055
AppSec [candidate] (26.385 ms) : 0, 26385
Debugger [baseline] (6.704 ms) : 0, 6704
Debugger [candidate] (7.594 ms) : 0, 7594
Remote Config [baseline] (622.376 µs) : 0, 622
Remote Config [candidate] (610.472 µs) : 0, 610
Telemetry [baseline] (8.563 ms) : 0, 8563
Telemetry [candidate] (8.553 ms) : 0, 8553
IAST [baseline] (28.367 ms) : 0, 28367
IAST [candidate] (30.469 ms) : 0, 30469
Startup time reports for petclinicgantt
title petclinic - global startup overhead: candidate=1.53.0-SNAPSHOT~ebfd052ede, baseline=1.53.0-SNAPSHOT~def5c6a361
dateFormat X
axisFormat %s
section tracing
Agent [baseline] (1.065 s) : 0, 1065200
Total [baseline] (10.8 s) : 0, 10800311
Agent [candidate] (1.045 s) : 0, 1045136
Total [candidate] (10.691 s) : 0, 10691298
section appsec
Agent [baseline] (1.231 s) : 0, 1231126
Total [baseline] (10.763 s) : 0, 10762542
Agent [candidate] (1.222 s) : 0, 1222412
Total [candidate] (10.742 s) : 0, 10741730
section iast
Agent [baseline] (1.191 s) : 0, 1190578
Total [baseline] (11.016 s) : 0, 11015670
Agent [candidate] (1.186 s) : 0, 1186124
Total [candidate] (10.952 s) : 0, 10952414
section profiling
Agent [baseline] (1.214 s) : 0, 1213954
Total [baseline] (11.037 s) : 0, 11036778
Agent [candidate] (1.201 s) : 0, 1201164
Total [candidate] (11.014 s) : 0, 11014148
gantt
title petclinic - break down per module: candidate=1.53.0-SNAPSHOT~ebfd052ede, baseline=1.53.0-SNAPSHOT~def5c6a361
dateFormat X
axisFormat %s
section tracing
crashtracking [baseline] (1.496 ms) : 0, 1496
crashtracking [candidate] (1.466 ms) : 0, 1466
BytebuddyAgent [baseline] (743.344 ms) : 0, 743344
BytebuddyAgent [candidate] (732.418 ms) : 0, 732418
GlobalTracer [baseline] (246.674 ms) : 0, 246674
GlobalTracer [candidate] (242.507 ms) : 0, 242507
AppSec [baseline] (30.819 ms) : 0, 30819
AppSec [candidate] (30.124 ms) : 0, 30124
Debugger [baseline] (6.16 ms) : 0, 6160
Debugger [candidate] (6.034 ms) : 0, 6034
Remote Config [baseline] (695.292 µs) : 0, 695
Remote Config [candidate] (664.633 µs) : 0, 665
Telemetry [baseline] (14.602 ms) : 0, 14602
Telemetry [candidate] (10.805 ms) : 0, 10805
section appsec
crashtracking [baseline] (1.488 ms) : 0, 1488
crashtracking [candidate] (1.446 ms) : 0, 1446
BytebuddyAgent [baseline] (760.781 ms) : 0, 760781
BytebuddyAgent [candidate] (754.615 ms) : 0, 754615
GlobalTracer [baseline] (237.057 ms) : 0, 237057
GlobalTracer [candidate] (235.624 ms) : 0, 235624
AppSec [baseline] (170.469 ms) : 0, 170469
AppSec [candidate] (169.224 ms) : 0, 169224
Debugger [baseline] (6.563 ms) : 0, 6563
Debugger [candidate] (6.475 ms) : 0, 6475
Remote Config [baseline] (628.302 µs) : 0, 628
Remote Config [candidate] (624.69 µs) : 0, 625
Telemetry [baseline] (9.129 ms) : 0, 9129
Telemetry [candidate] (10.001 ms) : 0, 10001
IAST [baseline] (23.753 ms) : 0, 23753
IAST [candidate] (23.329 ms) : 0, 23329
section iast
crashtracking [baseline] (1.468 ms) : 0, 1468
crashtracking [candidate] (1.461 ms) : 0, 1461
BytebuddyAgent [baseline] (859.273 ms) : 0, 859273
BytebuddyAgent [candidate] (857.727 ms) : 0, 857727
GlobalTracer [baseline] (235.776 ms) : 0, 235776
GlobalTracer [candidate] (232.973 ms) : 0, 232973
AppSec [baseline] (26.365 ms) : 0, 26365
AppSec [candidate] (26.134 ms) : 0, 26134
Debugger [baseline] (6.707 ms) : 0, 6707
Debugger [candidate] (9.208 ms) : 0, 9208
Remote Config [baseline] (604.646 µs) : 0, 605
Remote Config [candidate] (592.09 µs) : 0, 592
Telemetry [baseline] (8.349 ms) : 0, 8349
Telemetry [candidate] (8.26 ms) : 0, 8260
IAST [baseline] (30.843 ms) : 0, 30843
IAST [candidate] (28.517 ms) : 0, 28517
section profiling
crashtracking [baseline] (1.445 ms) : 0, 1445
crashtracking [candidate] (1.414 ms) : 0, 1414
BytebuddyAgent [baseline] (772.623 ms) : 0, 772623
BytebuddyAgent [candidate] (763.318 ms) : 0, 763318
GlobalTracer [baseline] (225.351 ms) : 0, 225351
GlobalTracer [candidate] (224.037 ms) : 0, 224037
AppSec [baseline] (30.653 ms) : 0, 30653
AppSec [candidate] (30.274 ms) : 0, 30274
Debugger [baseline] (6.423 ms) : 0, 6423
Debugger [candidate] (6.379 ms) : 0, 6379
Remote Config [baseline] (738.226 µs) : 0, 738
Remote Config [candidate] (699.625 µs) : 0, 700
Telemetry [baseline] (16.694 ms) : 0, 16694
Telemetry [candidate] (16.602 ms) : 0, 16602
ProfilingAgent [baseline] (109.879 ms) : 0, 109879
ProfilingAgent [candidate] (108.691 ms) : 0, 108691
Profiling [baseline] (110.53 ms) : 0, 110530
Profiling [candidate] (109.355 ms) : 0, 109355
LoadParameters
See matching parameters
SummaryFound 2 performance improvements and 2 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~ebfd052ede, baseline=1.53.0-SNAPSHOT~def5c6a361
dateFormat X
axisFormat %s
section baseline
no_agent (36.679 ms) : 36382, 36976
. : milestone, 36679,
appsec (48.891 ms) : 48437, 49345
. : milestone, 48891,
code_origins (45.838 ms) : 45459, 46217
. : milestone, 45838,
iast (46.813 ms) : 46406, 47220
. : milestone, 46813,
profiling (48.636 ms) : 48125, 49147
. : milestone, 48636,
tracing (43.934 ms) : 43560, 44309
. : milestone, 43934,
section candidate
no_agent (35.877 ms) : 35598, 36157
. : milestone, 35877,
appsec (46.586 ms) : 46173, 46999
. : milestone, 46586,
code_origins (45.543 ms) : 45138, 45948
. : milestone, 45543,
iast (45.744 ms) : 45346, 46142
. : milestone, 45744,
profiling (50.633 ms) : 50108, 51157
. : milestone, 50633,
tracing (45.349 ms) : 44957, 45742
. : milestone, 45349,
Request duration reports for insecure-bankgantt
title insecure-bank - request duration [CI 0.99] : candidate=1.53.0-SNAPSHOT~ebfd052ede, baseline=1.53.0-SNAPSHOT~def5c6a361
dateFormat X
axisFormat %s
section baseline
no_agent (4.37 ms) : 4311, 4429
. : milestone, 4370,
iast (9.323 ms) : 9168, 9479
. : milestone, 9323,
iast_FULL (13.903 ms) : 13622, 14184
. : milestone, 13903,
iast_GLOBAL (10.258 ms) : 10081, 10436
. : milestone, 10258,
profiling (8.756 ms) : 8621, 8891
. : milestone, 8756,
tracing (7.749 ms) : 7632, 7867
. : milestone, 7749,
section candidate
no_agent (4.416 ms) : 4356, 4476
. : milestone, 4416,
iast (9.488 ms) : 9330, 9645
. : milestone, 9488,
iast_FULL (14.182 ms) : 13896, 14467
. : milestone, 14182,
iast_GLOBAL (9.845 ms) : 9676, 10014
. : milestone, 9845,
profiling (8.728 ms) : 8585, 8871
. : milestone, 8728,
tracing (7.743 ms) : 7632, 7855
. : milestone, 7743,
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 biojavagantt
title biojava - execution time [CI 0.99] : candidate=1.53.0-SNAPSHOT~ebfd052ede, baseline=1.53.0-SNAPSHOT~def5c6a361
dateFormat X
axisFormat %s
section baseline
no_agent (14.868 s) : 14868000, 14868000
. : milestone, 14868000,
appsec (14.762 s) : 14762000, 14762000
. : milestone, 14762000,
iast (18.419 s) : 18419000, 18419000
. : milestone, 18419000,
iast_GLOBAL (18.274 s) : 18274000, 18274000
. : milestone, 18274000,
profiling (15.844 s) : 15844000, 15844000
. : milestone, 15844000,
tracing (15.028 s) : 15028000, 15028000
. : milestone, 15028000,
section candidate
no_agent (15.508 s) : 15508000, 15508000
. : milestone, 15508000,
appsec (15.022 s) : 15022000, 15022000
. : milestone, 15022000,
iast (18.265 s) : 18265000, 18265000
. : milestone, 18265000,
iast_GLOBAL (18.313 s) : 18313000, 18313000
. : milestone, 18313000,
profiling (15.1 s) : 15100000, 15100000
. : milestone, 15100000,
tracing (15.106 s) : 15106000, 15106000
. : milestone, 15106000,
Execution time for tomcatgantt
title tomcat - execution time [CI 0.99] : candidate=1.53.0-SNAPSHOT~ebfd052ede, baseline=1.53.0-SNAPSHOT~def5c6a361
dateFormat X
axisFormat %s
section baseline
no_agent (1.467 ms) : 1455, 1478
. : milestone, 1467,
appsec (3.566 ms) : 3354, 3777
. : milestone, 3566,
iast (2.195 ms) : 2133, 2258
. : milestone, 2195,
iast_GLOBAL (2.235 ms) : 2172, 2299
. : milestone, 2235,
profiling (2.054 ms) : 2001, 2106
. : milestone, 2054,
tracing (2.011 ms) : 1962, 2061
. : milestone, 2011,
section candidate
no_agent (1.473 ms) : 1461, 1485
. : milestone, 1473,
appsec (3.65 ms) : 3432, 3868
. : milestone, 3650,
iast (2.195 ms) : 2131, 2258
. : milestone, 2195,
iast_GLOBAL (2.23 ms) : 2167, 2293
. : milestone, 2230,
profiling (2.025 ms) : 1975, 2074
. : milestone, 2025,
tracing (2.012 ms) : 1963, 2061
. : milestone, 2012,
|
...bootstrap/src/main/java/datadog/trace/bootstrap/instrumentation/decorator/BaseDecorator.java
Outdated
Show resolved
Hide resolved
@@ -657,7 +657,7 @@ class ConfigTest extends DDSpecification { | |||
config.agentHost == " " | |||
config.agentPort == 8126 | |||
config.agentUrl == "http:// :8126" | |||
config.prioritySamplingEnabled == false | |||
config.prioritySamplingEnabled == true |
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.
any reason why this particular config was changed?
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.
Yes. The test tests, "default when configured incorrectly"
. The default value of prioritySamplingEnabled
is true
. However, the old test logic used to pass because, before my changes, booleanValueOf would return false
if a nonparseable value was provided to the config (e.g, "3" when we expect the config to be of type boolean
). So actually, my changes fixed this condition.
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.
Thanks, we may want to consider calling this out in the release notes as technically it is a change in behaviour (even though the change here is making handling of nonparseable booleans more consistent with other languages)
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.
Some unintended changes to address, but other than that LGTM
…strap/instrumentation/decorator/BaseDecorator.java Co-authored-by: Stuart McCulloch <[email protected]>
Hi! 👋 Thanks for your pull request! 🎉 To help us review it, please make sure to:
If you need help, please check our contributing guidelines. |
…taDog/dd-trace-java into mtoff/configconvert-boolean-exception
| 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
If the value provided to the
booleanValueOf
method cannot be converted to a boolean, throw aInvalidBooleanValueException
. Catch this exception in ConfigProvider, and return false to maintain backward compatibility.Motivation
This change is part of the Enhanced Configuration Telemetry initiative.
The previous
booleanValueOf
logic would just returnfalse
if an invalid value was provided, obscuring from the ConfigProvider that an invalid value was provided. Throwing an exception instead will improve the control flow in ConfigProvider.get to allow us to more accurately report real values and identify the chosen, valid valueFor more context, see: https://github.com/DataDog/dd-trace-java/pull/9327/files#diff-0d563029c90e2adb7f10f281111b5cd2cb02ca73515f104ec6dbd6c951c4c752R219-R260
The choice to use a custom exception and to return false was made in order to maintain backwards compatibility; we did not want to break environments that were already using this "forced false" behavior.
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: [PROJ-IDENT]