()
| 471 | } |
| 472 | |
| 473 | function shouldEmitMetrics(): boolean { |
| 474 | return initialized && !isSentryDisabled() && !isTestEnv() && !isSentryCaptureSealed(); |
| 475 | } |
| 476 | export function recordToolInvocationMetric(metric: ToolInvocationMetric): void { |
| 477 | if (!shouldEmitMetrics()) { |
| 478 | return; |
no test coverage detected