You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue proposes a refactor of the opentelemetry-proto crate to improve clarity, reduce unnecessary dependencies, and simplify usage for consumers of just the OTLP types.
🔄 Proposed Changes
1. Decouple opentelemetry-proto from SDK
Remove opentelemetry-sdk as a dependency of opentelemetry-proto.
Move transform logic (e.g., impl From<Resource> for proto::*) to opentelemetry-otlp, so opentelemetry-proto contains only wire format definitions.
2. Logical Re-exports for Protobuf Types
Organize generated Protobuf messages (e.g., LogsData, LogRecord, etc.) under logical module paths like:
proto::opentelemetry::proto::logs::v1::*
This avoids consumers needing to depend directly on the file layout under src/proto/tonic.
3. Isolate gRPC Service Definitions
Keep gRPC service definitions (e.g., LogsServiceClient, LogsServiceServer) in the same physical location (src/proto/tonic), but expose them only behind the gen-tonic feature via:
Hey all, are you accepting contributions for this issue? If so, I'd love to contribute.
For some additional context, I'm one of the maintainers of OpenTelemetry Python and we're currently in the process of implementing OTEP-4719 (Process Context Sharing) (see open-telemetry/opentelemetry-python-contrib#5040). We're using a native Rust extension with PyO3/Maturin for this and were looking to reuse the opentelemetry-proto crate, but opted against it because it has hard dependencies on the entire Rust SDK. We'd benefit greatly from a zero-dependency/minimal Rust crate dedicated to protobuf definitions.
Activity
scottgerring commentedon Dec 5, 2025
Hey @lalitb what's the go here? I'm trying to work out what we have outstanding to declare otlp stable.
herin049 commentedon Oct 5, 2026
Hey all, are you accepting contributions for this issue? If so, I'd love to contribute.
For some additional context, I'm one of the maintainers of OpenTelemetry Python and we're currently in the process of implementing OTEP-4719 (Process Context Sharing) (see open-telemetry/opentelemetry-python-contrib#5040). We're using a native Rust extension with PyO3/Maturin for this and were looking to reuse the
opentelemetry-protocrate, but opted against it because it has hard dependencies on the entire Rust SDK. We'd benefit greatly from a zero-dependency/minimal Rust crate dedicated to protobuf definitions.scottgerring commentedon Oct 6, 2026
Per slack, #3512 should cover this ; have rebased on main and re-opened and spoken with @lalitb about how we can move forward!