-
Notifications
You must be signed in to change notification settings - Fork 92
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
feat(spans): Reintroduce OTLP endpoint #4223
Conversation
relay-server/src/endpoints/mod.rs
Outdated
@@ -74,6 +75,7 @@ pub fn routes(config: &Config) -> Router<ServiceState>{ | |||
.route("/api/:project_id/minidump/", minidump::route(config)) | |||
.route("/api/:project_id/events/:event_id/attachments/", post(attachments::handle)) | |||
.route("/api/:project_id/unreal/:sentry_key/", unreal::route(config)) | |||
.route("/api/:project_id/traces-data/", traces_data::route(config)) |
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.
Rename to /traces/
to be consistent with https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/#otel_exporter_otlp_traces_protocol?
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.
Why is it currently "traces-data"?
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.
In the previous impl it was /spans/
i wanted to name it after the data type it accepts (TracesData
) to be consistent with /minidump/
, /csp-report/
, etc. But reading the link above a bit more, we should maybe even name it /otel/v1/traces/
to be future proof.
For OTLP/HTTP, exporters in the SDK construct signal-specific URLs when this environment variable is set. This means that if you’re sending traces, metrics, and logs, the following URLs are constructed from the example above:
Traces: "http://my-api-endpoint/v1/traces"
Metrics: "http://my-api-endpoint/v1/metrics"
Logs: "http://my-api-endpoint/v1/logs"
https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/#otel_exporter_otlp_endpoint
relay-server/src/endpoints/mod.rs
Outdated
@@ -74,6 +75,7 @@ pub fn routes(config: &Config) -> Router<ServiceState>{ | |||
.route("/api/:project_id/minidump/", minidump::route(config)) | |||
.route("/api/:project_id/events/:event_id/attachments/", post(attachments::handle)) | |||
.route("/api/:project_id/unreal/:sentry_key/", unreal::route(config)) | |||
.route("/api/:project_id/traces-data/", traces_data::route(config)) |
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.
Why is it currently "traces-data"?
Converting back to draft, unclear if needed. |
Restore the OTLP endpoint that was removed in #3973.
This PR moves the parsing of the trace data to the processor to ensure fast response times.
I also renamed the endpoint from
/spans/
to/otlp/v1/traces/
to be consistent with https://opentelemetry.io/docs/languages/sdk-configuration/otlp-exporter/#otel_exporter_otlp_endpoint.fixes: https://github.com/getsentry/team-ingest/issues/569