feat(otel): OTLP HTTP exporter for free-threaded OTLP export#156
Merged
Conversation
Add an opentelemetry_exporter_protocol config (grpc|http, default grpc) and an otl-http extra (opentelemetry-exporter-otlp-proto-http, no grpcio) so OTLP trace export works on free-threaded Python; repoint otl to the grpc exporter package. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
…xtra Add opentelemetry_exporter_protocol (default grpc, unchanged behavior) and a grpcio-free otl-http extra (opentelemetry-exporter-otlp-proto-http) so OTLP trace export works on free-threaded Python. bootstrap() picks the aliased exporter by protocol and warns naming the right extra when it is absent; the insecure warning is gRPC-only. otl now pulls the grpc exporter package directly. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Install otl-http on both ft legs and have ft_smoke.py bootstrap a protocol=http OpenTelemetryInstrument (grpc/grpcio stays absent). Verified on real 3.13t and 3.14t interpreters. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Add otl-http to the free-threading matrix, document the api/sdk/exporter guards plus protocol selection in instruments.md, clear the OTLP-http deferral, and note it in 1.3.0. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.
Summary
otlwas the last observability surface with no free-threaded story — its OTLP exporter goes over gRPC (needsgrpcio, no ft wheels). Adds an HTTP-exporter path. Full rationale:planning/changes/2026-07-19.02-otlp-http-exporter.md; shape decision:planning/decisions/2026-07-19-otlp-http-exporter-shape.md.What changed
opentelemetry_exporter_protocol: Literal["grpc","http"] = "grpc"— default keeps current behavior byte-for-byte.bootstrap()selects the exporter by protocol and warns (naming[otl]/[otl-http]) if the chosen exporter package is absent.is_otlp_http_exporter_installedguard; both exporters imported aliased under their own guards.otl→opentelemetry-exporter-otlp-proto-grpc(was theopentelemetry-exporter-otlpmeta — functionally identical for gRPC users, verified against package metadata); newotl-http→opentelemetry-exporter-otlp-proto-http(requests+protobuf, no grpcio, ft-installable).opentelemetry_insecureis gRPC-only (URL scheme carries http security).otl-httpadded to both ft legs;scripts/ft_smoke.pybootstraps a protocol=http instrument. Docs:architecture/free-threading.mdmatrix (otl-http✅),architecture/instruments.md(api/sdk/exporter guards + protocol selection), user config reference,1.3.0release note; cleared the OTLP-http deferral.Support matrix (ft)
otl(gRPC exporter)otl-http(HTTP exporter)Testing
just test215 passed, 100% coverage (both exporter-construction branches now covered by tests — the old# pragma: no coveris gone; no new pragma/ignore).just lint-ciclean.otl-httpinstalls (no grpcio) andscripts/ft_smoke.pypasses on 3.13t and 3.14t.importlib.metadata): ready to merge.🤖 Generated with Claude Code