WithClient adds a telemetry client to the context
(ctx context.Context, client *Client)
| 14 | |
| 15 | // WithClient adds a telemetry client to the context |
| 16 | func WithClient(ctx context.Context, client *Client) context.Context { |
| 17 | return context.WithValue(ctx, clientContextKey, client) |
| 18 | } |
| 19 | |
| 20 | // FromContext retrieves the telemetry client from context |
| 21 | func FromContext(ctx context.Context) *Client { |
no outgoing calls