Skip to content

Add NullAway to Alibaba Druid instrumentation - #20149

Open
zeitlinger wants to merge 1 commit into
open-telemetry:mainfrom
zeitlinger:chore/nullaway-alibaba-druid
Open

zeitlinger wants to merge 1 commit into
open-telemetry:mainfrom
zeitlinger:chore/nullaway-alibaba-druid

Conversation

@zeitlinger

Copy link
Copy Markdown
Member

Summary

Enable otel.nullaway-conventions for the Alibaba Druid 1.0 javaagent instrumentation.

Annotate both JdbcConnectionUrlParser.parse inputs as nullable, matching its documented behavior and existing tests that pass null URLs and properties. This makes the shared internal contract accurately describe the values supplied by Druid and other JDBC integrations.

Tests

  • ./gradlew --max-workers=2 :instrumentation:alibaba-druid-1.0:javaagent:check :instrumentation:jdbc:library:check
  • git diff --check
  • pre-push mise run lint:fix

Part of #15991

Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Copilot AI balanced review requested due to automatic review settings September 14, 2026 12:38
@zeitlinger
zeitlinger requested a review from a team as a code owner September 14, 2026 12:38
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Sep 14, 2026

Copy link
Copy Markdown

Pull request dashboard status

Waiting on reviewers · refreshed 2026-09-14 23:16 UTC

Review the latest changes.

Status above doesn't look right?
  • Just replied or pushed? Anything around or after the refresh time above may not be picked up yet — give it a few minutes.
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The annotations match existing handling and tests, and the focused rollout introduces no unresolved issues.

Pull request overview

Enables NullAway for Alibaba Druid instrumentation and aligns the shared JDBC parser’s nullability contract with existing behavior.

Changes:

  • Enables NullAway conventions for the Druid javaagent module.
  • Marks JDBC URL and properties parser inputs nullable.
File summaries
File Description
instrumentation/alibaba-druid-1.0/javaagent/build.gradle.kts Enables NullAway checks.
instrumentation/jdbc/library/src/main/java/io/opentelemetry/instrumentation/jdbc/internal/JdbcConnectionUrlParser.java Documents nullable parser inputs.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 0
  • Review effort level: Balanced

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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