Skip to content

Conversation

@zeitlinger
Copy link
Member

@zeitlinger zeitlinger commented Oct 31, 2025

I tried out using the declarative config API directly as discussed in #14767

It feels quite verbose - but let's use it as a start for the discussion

@zeitlinger zeitlinger self-assigned this Oct 31, 2025
@github-actions github-actions bot added the test native This label can be applied to PRs to trigger them to run native tests label Oct 31, 2025
@zeitlinger
Copy link
Member Author

@trask please have a look

@zeitlinger zeitlinger marked this pull request as ready for review November 3, 2025 10:18
@zeitlinger zeitlinger requested a review from a team as a code owner November 3, 2025 10:18
return false;
}

return instrumentationConfig
Copy link
Member

Choose a reason for hiding this comment

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

Are there tests for declarative configuration applied to the JDBC instrumentation?

Copy link
Member Author

Choose a reason for hiding this comment

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

to early for that - I first want to discuss if this approach is better than #14767

}

private static boolean transactionEnabled(OpenTelemetry openTelemetry, boolean defaultEnabled) {
if (openTelemetry instanceof ExtendedOpenTelemetry) {
Copy link
Member

Choose a reason for hiding this comment

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

(minor) The else could be removed in this way:

if (!openTelemetry instanceof ExtendedOpenTelemetry) {
   return ConfigPropertiesUtil.getBoolean(
          "otel.instrumentation.jdbc.experimental.transaction.enabled", defaultEnabled);
}

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

Labels

test native This label can be applied to PRs to trigger them to run native tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants