NewOutgoingCarrier creates a new Carrier with the given context. The outgoing carrier should be used with propagator's `Inject()` method in the outgoing rpc path.
(ctx context.Context)
| 93 | // outgoing carrier should be used with propagator's `Inject()` method in the |
| 94 | // outgoing rpc path. |
| 95 | func NewOutgoingCarrier(ctx context.Context) *OutgoingCarrier { |
| 96 | return &OutgoingCarrier{ctx: ctx} |
| 97 | } |
| 98 | |
| 99 | // Get just logs an error and returns an empty string. It implements the |
| 100 | // `TextMapCarrier` interface but should not be used with `OutgoingCarrier`. |
no outgoing calls