Skip to content

Prepare for SQLQueryAnalyzer analyze change in 3.0#18921

Merged
laurit merged 2 commits into
open-telemetry:mainfrom
trask:to-be-removed
Jun 8, 2026
Merged

Prepare for SQLQueryAnalyzer analyze change in 3.0#18921
laurit merged 2 commits into
open-telemetry:mainfrom
trask:to-be-removed

Conversation

@trask

@trask trask commented Jun 6, 2026

Copy link
Copy Markdown
Member

No description provided.

@trask
trask requested a review from a team as a code owner June 6, 2026 21:07
Copilot AI review requested due to automatic review settings June 6, 2026 21:07

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.

Pull request overview

Adjusts SqlQueryAnalyzer behavior to align with upcoming semantic-conventions v3 expectations by making analyze() return summary-capable results when v3 preview mode is enabled, while keeping the existing behavior for non-preview configurations.

Changes:

  • Route SqlQueryAnalyzer.analyze() to analyzeWithSummary() when SemconvStability.v3Preview() is enabled.
  • Mark analyzeWithSummary() as a transitional API slated for removal/inlining (recommended to formalize via deprecation).

SqlQueryAnalyzer started checking the v3 preview semconv flag, but the
internal SemconvStability helper was not imported, causing
:instrumentation-api-incubator:compileJava to fail across CI jobs.
Import SemconvStability so the query analyzer compiles.

Validation: .\gradlew.bat :instrumentation-api-incubator:compileJava
@laurit
laurit merged commit 2d3f000 into open-telemetry:main Jun 8, 2026
95 checks passed
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.

3 participants