Skip to content

fix(otlp): return application/x-protobuf response format on otlp endpoints - #6801

Open
Tyagiquamar wants to merge 2 commits into
quickwit-oss:mainfrom
Tyagiquamar:fix/otlp-protobuf-response-content-type
Open

Tyagiquamar wants to merge 2 commits into
quickwit-oss:mainfrom
Tyagiquamar:fix/otlp-protobuf-response-content-type

Conversation

@Tyagiquamar

@Tyagiquamar Tyagiquamar commented Sep 15, 2026 •

Copy link
Copy Markdown

Fixes #6786.

Successful OTLP HTTP ingest responses now encode the exported response as binary protobuf and send Content-Type: application/x-protobuf. Ingest errors retain the existing JSON error format.

All four default/indexed logs and traces response annotations declare the protobuf media type in OpenAPI. The error-only result has an explicit unit success type, and response-decoding tests pass byte slices to Prost. Regressions check both the JSON error response and generated OpenAPI media types, alongside the existing compressed/uncompressed ingest cases.

Docker validation with Rust 1.96.1, Protobuf compiler and the repository's nightly formatter passed:

  • cargo test --locked -p quickwit-serve otlp_api::rest_handler::tests --lib -j 2: four focused test functions passed.
  • cargo build --locked -p quickwit-serve --lib -j 2: passed.
  • cargo fmt --all -- --check: passed.
  • make fmt: formatting, license-header and log-format checks passed during preparation; the final source also passed the formatting check above.
  • git diff --check: passed.

The full test suite and live ingest service integration tests were not run locally.

…oints

Signed-off-by: Tyagiquamar <mohdquamartyagi@gmail.com>
@Tyagiquamar
Tyagiquamar requested a review from a team as a code owner September 15, 2026 07:17

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 284e6554b2

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread quickwit/quickwit-serve/src/otlp_api/rest_handler.rs Outdated
Comment thread quickwit/quickwit-serve/src/otlp_api/rest_handler.rs
@Tyagiquamar

Copy link
Copy Markdown
Author

Hi, just following up on this when you get a chance. The branch is up to date and checks are green. If it looks good from your side, it should be ready to merge. Happy to make any changes if needed. Thanks!

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 9, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-09T17:04:46.250646Z ab15607 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

This branch has not been deployed

No deployments
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.

OTLP record with time_unix_nano: 0 is rejected with an empty error_message, and the response is JSON for a protobuf request

1 participant