google / google/tarpc

Make opentelemetry optional

Open
#564 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
3.7k
Forks
230
PR merge metrics
No merged PRs in 30d

Description

Right now opentelemetry and co are [unconditional dependencies](https://github.com/google/tarpc/blob/main/tarpc/Cargo.toml#L61).

I use tarpc in a project where I just communicate between two services over stdio; I mostly need it for really convenient abstractions and proc macro. Thus, opentelemetry is an overkill for me, and it's basically a dead dependency that I need to worry about.

It would be great if it was put under a feature and made optional.

BTW -- thank you for a great library! I've checked a lot of lightweight RPC implementations in rust and this was the most convenient by far. ❤️

Contributor guide

Open the contributing guide

Research direction

Start in tarpc/Cargo.toml at the unconditional opentelemetry dependency and inspect how Cargo features expose optional dependencies. Verify that the crate builds without the dependency enabled, while existing OpenTelemetry support remains available when its feature is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
rust
Domain
api, build-system, distributed-systems
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.