( telemetry: TelemetryClient, patch: TelemetryContextPatch, )
| 19 | }; |
| 20 | |
| 21 | export function withTelemetryContext( |
| 22 | telemetry: TelemetryClient, |
| 23 | patch: TelemetryContextPatch, |
| 24 | ): TelemetryClient { |
| 25 | return telemetry.withContext?.(patch) ?? telemetry; |
| 26 | } |
| 27 | |
| 28 | export function withTelemetryProperties( |
| 29 | telemetry: TelemetryClient, |
no test coverage detected