Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for OTLP HTTP API. #4335

Merged
merged 8 commits into from
Jan 2, 2024
Merged

Add support for OTLP HTTP API. #4335

merged 8 commits into from
Jan 2, 2024

Conversation

fmassot
Copy link
Contributor

@fmassot fmassot commented Dec 30, 2023

  • add tests

I tested the OTLP HTTP API with tracegen for traces and with an OTEL collector for logs (compression must be set to none).

@fmassot fmassot requested a review from etolbakov December 30, 2023 20:26
@etolbakov
Copy link
Collaborator

All LGTM

@fmassot fmassot marked this pull request as ready for review December 31, 2023 17:51
@fmassot fmassot requested a review from trinity-1686a January 2, 2024 11:19
vec![resource_spans]
}

#[cfg(test)]
Copy link
Member

Choose a reason for hiding this comment

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

It's better if these tests stay in the same file as the code under test.

quickwit/quickwit-serve/src/otlp_api/rest_handler.rs Outdated Show resolved Hide resolved
) -> impl Filter<Extract = (impl warp::Reply,), Error = Rejection> + Clone {
require(otlp_log_service)
.and(warp::path!(String / "ingest" / "otlp" / "v1" / "logs"))
.and(warp::header::exact_ignore_case(
Copy link
Member

Choose a reason for hiding this comment

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

Feature request:
Support JSON over HTTP in addition to Proto.

@fmassot fmassot force-pushed the fmassot/otlp-http branch from e7cc25c to fcde258 Compare January 2, 2024 16:31
@fmassot fmassot force-pushed the fmassot/otlp-http branch from 042abc4 to 3c30011 Compare January 2, 2024 17:52
@fmassot fmassot merged commit 12042de into main Jan 2, 2024
4 checks passed
@fmassot fmassot deleted the fmassot/otlp-http branch January 2, 2024 20:46
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