WithTelemetryClient returns a new copy of context.Context with the provided telemetryClient
(ctx context.Context, client TelemetryClient)
| 169 | |
| 170 | // WithTelemetryClient returns a new copy of context.Context with the provided telemetryClient |
| 171 | func WithTelemetryClient(ctx context.Context, client TelemetryClient) context.Context { |
| 172 | return context.WithValue(ctx, telemetryClientKey{}, client) |
| 173 | } |
| 174 | |
| 175 | // GetTelemetryClient returns the CLIAnalyticsEventMetadata from the provided context |
| 176 | func GetTelemetryClient(ctx context.Context) TelemetryClient { |
no outgoing calls