GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Add QUERY to the default known HTTP methods by kumarprabhashanand · Pull Request #21258 · open-telemetry/opentelemetry-java-instrumentation

Conversation

@kumarprabhashanand

@kumarprabhashanand kumarprabhashanand commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Adds QUERY to the default known HTTP methods, which the semantic conventions already list as known.
QUERY was standardised as RFC 10008 in June 2026.
These requests show up as _OTHER with the span name HTTP currently.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@kumarprabhashanand
Add QUERY to the default known HTTP methods
dd77e21
@kumarprabhashanand
kumarprabhashanand requested a review from a team as a code owner November 8, 2026 20:40
@opentelemetry-pr-dashboard

opentelemetry-pr-dashboard Bot commented Nov 8, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Pull request dashboard status

Merged · refreshed 2026-11-20 17:24 UTC

Status above doesn't look right?
  • Anything look wrong? Report it with what you expected; it helps us improve the dashboard.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@opentelemetry-pr-dashboard
opentelemetry-pr-dashboard Bot requested a balanced review from Copilot November 8, 2026 20:41
@opentelemetry-pr-dashboard opentelemetry-pr-dashboard Bot mentioned this pull request Nov 8, 2026
Pull Request Dashboard #18435
Open
Copilot started reviewing on behalf of kumarprabhashanand November 8, 2026 20:42
View session
Copilot AI reviewed Nov 8, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

🟢 Approval recommended

No active review issues are reported for the change adding QUERY to the default known HTTP methods.

No open issues 🎉

What changed in this PR

Adds QUERY to the shared default known HTTP methods so instrumentation recognizes it instead of reporting _OTHER with the fallback span name HTTP.

Changes:

  • Includes QUERY in the runtime default method set.
  • Aligns Spring Boot configuration metadata, shared configuration defaults, and the documentation example.
File Description
instrumentation/​spring/​spring-boot-autoconfigure/​src/​main/​resources/​META-INF/​additional-spring-configuration-metadata.json Adds QUERY to the advertised default.
instrumentation-docs/​src/​main/​resources/​shared-config-definitions.yaml Updates the shared known-methods default.
instrumentation-docs/​readme.md Aligns the documentation example with the new default.
instrumentation-api/​src/​main/​java/​io/​opentelemetry/​instrumentation/​api/​internal/​HttpConstants.java Adds QUERY to the runtime known-methods set.

Review effort: Balanced

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@laurit

laurit commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

The problem with this is that QUERY is still marked as in development while the other values are marked stable, see https://opentelemetry.io/docs/specs/semconv/http/http-spans/#http-request-method-values Since our http semconv implementation uses only stable attributes QUERY can't be added by default unless it is also marked stable. Development attributes can only be enabled with an opt-in flag. To implement that you'd need to replace the constant with a method that accepts OpenTelemetry instance so you could read the configuration flag.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kumarprabhashanand kumarprabhashanand mentioned this pull request Nov 9, 2026
Mark the HTTP QUERY method as stable open-telemetry/semantic-conventions#4321
Closed
@kumarprabhashanand

kumarprabhashanand commented Nov 9, 2026

Copy link
Copy Markdown
Contributor Author

The problem with this is that QUERY is still marked as in development while the other values are marked stable, see https://opentelemetry.io/docs/specs/semconv/http/http-spans/#http-request-method-values Since our http semconv implementation uses only stable attributes QUERY can't be added by default unless it is also marked stable. Development attributes can only be enabled with an opt-in flag. To implement that you'd need to replace the constant with a method that accepts OpenTelemetry instance so you could read the configuration flag.

Thanks @laurit for quick review and comment! I see it was marked as development because the RFC was still a draft at the time of that PR, according to this comment which is not the case anymore. I've created an issue to mark it as stable, and planning to raise PR is the solution is accepted.
Do you prefer keeping this PR open until then or close it?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@trask

trask commented Nov 17, 2026

Copy link
Copy Markdown
Member

I've created an open-telemetry/semantic-conventions#4321 to mark it as stable, and planning to raise PR is the solution is accepted.

👍

Do you prefer keeping this PR open until then or close it?

let's keep it open, thanks!

kumarprabhashanand reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@kumarprabhashanand
Merge branch 'main' into http-query-known-method
e262603
trask
trask approved these changes Nov 18, 2026
View reviewed changes
@kumarprabhashanand

kumarprabhashanand commented Nov 18, 2026

Copy link
Copy Markdown
Contributor Author

The semantic conventions changes are now merged in open-telemetry/semantic-conventions#4352, marking QUERY as stable.
This PR is ready for another round of review now.

trask reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@opentelemetry-pr-dashboard
opentelemetry-pr-dashboard Bot requested a balanced review from Copilot November 18, 2026 22:45
Copilot started reviewing on behalf of kumarprabhashanand November 18, 2026 22:45
View session
Copilot AI reviewed Nov 18, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

🟡 Changes recommended

The public setKnownMethods Javadocs still describe the default methods as RFC 9110 methods plus PATCH, omitting the newly added QUERY method.

1 open issue
  • Low severity Update setKnownMethods Javadocs to include QUERY · New

Review effort: Balanced

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread ...mentation-api/src/main/java/io/opentelemetry/instrumentation/api/internal/HttpConstants.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

kumarprabhashanand and others added 2 commits November 20, 2026 11:47
@kumarprabhashanand
Merge branch 'main' into http-query-known-method
ac7f223
@kumarprabhashanand
add QUERY in the known methods Javadoc
82e8629
@opentelemetry-pr-dashboard
opentelemetry-pr-dashboard Bot requested a balanced review from Copilot November 20, 2026 11:44
Copilot started reviewing on behalf of kumarprabhashanand November 20, 2026 11:44
View session
Copilot AI reviewed Nov 20, 2026
View reviewed changes

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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.

🟢 Approval recommended

No active review issues are reported for the addition of QUERY to the shared default HTTP method set.

No open issues 🎉

1 resolved since last review
  • Low severity Update setKnownMethods Javadocs to include QUERY

Review effort: Balanced

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
laurit
laurit approved these changes Nov 20, 2026
View reviewed changes
@laurit laurit added this to the v3.0.0 milestone Nov 20, 2026
@trask
trask merged commit 182a168 into open-telemetry:main Nov 20, 2026
132 of 135 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@otelbot

otelbot Bot commented Nov 20, 2026

Copy link
Copy Markdown
Contributor

Thank you for your contribution @kumarprabhashanand! 🎉 We would like to hear from you about your experience contributing to OpenTelemetry by taking a few minutes to fill out this survey.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

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

Reviewers

Copilot code review Copilot
Copilot review effort
Applies to this pull request for everyone.Learn more about Copilot code review.
Copilot left review comments
@trask trask trask approved these changes
@laurit laurit laurit approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

v3.0.0

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@kumarprabhashanand @laurit @trask
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.