Skip to content

Add a gRPC implementation choice: libgrpc - #83

Draft
agagniere wants to merge 1 commit into
open-telemetry:mainfrom
agagniere:grpc-libgrpc
Draft

Add a gRPC implementation choice: libgrpc#83
agagniere wants to merge 1 commit into
open-telemetry:mainfrom
agagniere:grpc-libgrpc

Conversation

@agagniere

@agagniere agagniere commented Sep 2, 2026

Copy link
Copy Markdown
Member

Closes #13

Wire the libgrpc value of -Dgrpc-provider to a real transport backed by Google's libgrpc, through the cgrpc_wrapper Zig bindings (a lazy dependency, so default builds never fetch it nor the libgrpc sources).

The transport performs a raw unary call with the pre-encoded protobuf payload, maps non-OK statuses to retryable/non-retryable errors per the OTLP spec, and builds channel credentials from the shared grpc/config.zig decision.

Reading PEM files needs an Io, so send takes one; the noop backend and the otlp.Export call site are updated accordingly.

Split and adapted from zig-o11y/opentelemetry-sdk#140

Remaining:

  • example
  • integration test
  • bump to latest gRPC

Wire the `libgrpc` value of `-Dgrpc-provider` to a real transport backed by
Google's libgrpc, through the `cgrpc_wrapper` Zig bindings (a lazy dependency,
so default builds never fetch it nor the libgrpc sources).

The transport performs a raw unary call with the pre-encoded protobuf payload,
maps non-OK statuses to retryable/non-retryable errors per the OTLP spec, and
builds channel credentials from the shared `grpc/config.zig` decision.

Reading PEM files needs an `Io`, so `send` takes one; the noop backend and the
`otlp.Export` call site are updated accordingly.

Assisted-by: Claude Opus 5
@agagniere agagniere self-assigned this Sep 2, 2026
@agagniere agagniere added this to Zig SIG Sep 2, 2026
@agagniere agagniere added enhancement New feature or request sdk labels Sep 2, 2026
@github-project-automation github-project-automation Bot moved this to Backlog in Zig SIG Sep 2, 2026
@agagniere agagniere moved this from Backlog to In progress in Zig SIG Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request sdk

Projects

Status: In progress

Development

Successfully merging this pull request may close these issues.

Support gRPC transport in OTLP

1 participant