Skip to content

Add declarative config support for sensitive_query_parameters#8087

Draft
trask wants to merge 1 commit intoopen-telemetry:mainfrom
trask:sensitive_query_parameters
Draft

Add declarative config support for sensitive_query_parameters#8087
trask wants to merge 1 commit intoopen-telemetry:mainfrom
trask:sensitive_query_parameters

Conversation

@trask
Copy link
Member

@trask trask commented Feb 13, 2026

* @throws DeclarativeConfigException if an unexpected type is encountered accessing the property
*/
@Nullable
public static List<String> sensitiveQueryParameters(ConfigProvider configProvider) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you like these helper functions?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good question, I guess not really 😄

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My initial thought is that they would be helpful for instrumentation conform to these general config options. All the instrumentation in opentelemetry-java-instrumentation can leverage shared utils in that repo to do this type of thing, so its really only native instrumentation that would stand to benefit.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I kind of like the explicitness of seeing the yaml path in the code.

But can see them being useful.

What's your thought about these methods handling default values (and never returning null)?

@codecov
Copy link

codecov bot commented Feb 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.22%. Comparing base (673f89e) to head (17ac8c1).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #8087      +/-   ##
============================================
- Coverage     90.22%   90.22%   -0.01%     
- Complexity     7606     7607       +1     
============================================
  Files           841      841              
  Lines         22938    22925      -13     
  Branches       2291     2291              
============================================
- Hits          20695    20683      -12     
+ Misses         1526     1525       -1     
  Partials        717      717              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants