pub fn create_request_with_context<T>(
inner: T,
cx: Option<&Context>,
) -> Request<T>Expand description
Creates a new tonic::Request with the OpenTelemetry context injected into metadata.
This is used to propagate context when forwarding requests to downstream services.
If cx is None, returns a request without injected context.