(message: string, captureContext?: CaptureContext | SeverityLevel)
| 40 | * @returns the id of the captured message. |
| 41 | */ |
| 42 | export function captureMessage(message: string, captureContext?: CaptureContext | SeverityLevel): string { |
| 43 | // This is necessary to provide explicit scopes upgrade, without changing the original |
| 44 | // arity of the `captureMessage(message, level)` method. |
| 45 | const level = typeof captureContext === 'string' ? captureContext : undefined; |
| 46 | const hint = typeof captureContext !== 'string' ? { captureContext } : undefined; |
| 47 | return getCurrentScope().captureMessage(message, level, hint); |
| 48 | } |
| 49 | |
| 50 | /** |
| 51 | * Captures a manually created event and sends it to Sentry. |
nothing calls this directly
no test coverage detected