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
Hey, I'm loving the direction this is going, I think it's really going to help me with my microservices backend written in tonic. I've already got my individual services reporting to Jaeger, now I'm trying to get context propagation working. tonic exposes a trace_fn that gives you a http::header::HeaderMap. I'm trying to use a B3Propagator to extract the context from the HeaderMap, but Carrier is only implemented for HashMap with &'static str as the key.
Could you make an implementation of Carrier for http::header::HeaderMap please? Because of Rust's rules around implementations, I can't make an implementation of a foreign trait on a foreign type.
Also in general, it seems like Carrier shouldn't be using &'static str, but should instead just be using &str. I can take a stab at a pull request if you like.
The text was updated successfully, but these errors were encountered:
Oh I didn't see that example. You're right, it does the job, but there's
definitely some boilerplate. I'll take a look at putting a PR together, it
shouldn't be too complicated.
Hey, I'm loving the direction this is going, I think it's really going to help me with my microservices backend written in tonic. I've already got my individual services reporting to Jaeger, now I'm trying to get context propagation working.
tonic
exposes atrace_fn
that gives you ahttp::header::HeaderMap
. I'm trying to use aB3Propagator
to extract the context from theHeaderMap
, butCarrier
is only implemented forHashMap
with&'static str
as the key.Could you make an implementation of
Carrier
forhttp::header::HeaderMap
please? Because of Rust's rules around implementations, I can't make an implementation of a foreign trait on a foreign type.Also in general, it seems like
Carrier
shouldn't be using&'static str
, but should instead just be using&str
. I can take a stab at a pull request if you like.The text was updated successfully, but these errors were encountered: