Repository navigation
Standard OTLP/HTTP trace receiver - #56
Merged
Merged
Conversation
POST /v1/otlp/v1/traces accepts protobuf or JSON (gzip/deflate) from any stock OpenTelemetry exporter and translates spans into the existing manitos.telemetry.v1 envelope, reusing its idempotent ingestion. GenAI conventions map to span types, tokens and tool names. Metadata-only by default: content-like attributes are dropped (OBSERVATORY_OTLP_CAPTURE=full keeps them). Spans of a trace may arrive in several batches. Adds opentelemetry-proto. Roadmap step 5 done; mapping in docs/otlp.md.
josedaniel-dev
force-pushed
the
feat/otlp-receiver
branch
from
October 16, 2026 07:29
3e81158 to
7a6d3d9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Step 5 of docs/roadmap.md.
POST /v1/otlp/v1/traces: OTLP/HTTP, protobuf (the usual default) or JSON, gzip/deflate,ExportTraceServiceResponsewithpartialSuccess. SetOTEL_EXPORTER_OTLP_ENDPOINT=http://host:8100/v1/otlp; auth viaOTEL_EXPORTER_OTLP_HEADERS=Authorization=Bearer …. gRPC is out of scope.manitos.telemetry.v1envelope and reuses its ingestion (extracted asapply_envelope, route unchanged), so idempotency, upsert and the dashboard are shared. Trace id → UUID; span id → stable derived UUID, so a retry updates instead of duplicating.observer-regression.rejectedSpans.OBSERVATORY_OTLP_CAPTURE=metadatadrops content-like attributes (prompt, completion, content, message, input, output, url, path, token, key…) before storage;fullkeeps them. The filter checks names, not values — documented as a safety net indocs/otlp.md.opentelemetry-proto>=1.27,<2(brings protobuf).Tests: translation, privacy, protobuf+gzip, JSON, retries, multi-batch linking, error paths, project conflict. Backend 203 passed, ruff clean. Verified with a stock
opentelemetry-sdk+opentelemetry-exporter-otlp-proto-httpapp: trace, spans, token counts and a tool span arrived; the prompt attribute did not.No migration and no dashboard change.