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

allow specifying index in otel http protobuf api #5421

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

trinity-1686a
Copy link
Contributor

Description

fix #5413

How was this PR tested?

updated tests

Copy link

On SSD:

Average search latency is 0.989x that of the reference (lower is better).
Ref run id: 3395, ref commit: d142f59
Link

On GCS:

Average search latency is 0.974x that of the reference (lower is better).
Ref run id: 3396, ref commit: d142f59
Link

Copy link
Contributor

@rdettai rdettai left a comment

Choose a reason for hiding this comment

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

An entry in the docs (https://quickwit.io/docs/main-branch/log-management/otel-service and https://quickwit.io/docs/main-branch/distributed-tracing/otel-service) would be cool! I remember struggling to figure out the exact endpoint when setting up OTEL ingestion with Grafana Tempo 😄

#[utoipa::path(
post,
tag = "Open Telemetry",
path = "/{index}/otlp/v1/traces",
Copy link
Contributor

Choose a reason for hiding this comment

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

I'm a bit surprised that we use a path param here and not a header (also what was suggested in #5413). It would be more in line with the way it works in GRPC. But of course in GRPC you don't have a path, so the comparison doesn't really hold. I guess both are fine!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That api endpoint was already there (but didn't work properly and was absent from openapi definiton). @fmassot, looks like that code was yours, what do you think (index in path vs in header)?

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.

Can not specify an index id on the http otel api
2 participants