(span: Span, res: ServerResponse)
| 38 | |
| 39 | /** Finish the given response's span and set HTTP status data */ |
| 40 | export function finishSpan(span: Span, res: ServerResponse): void { |
| 41 | setHttpStatus(span, res.statusCode); |
| 42 | span.end(); |
| 43 | } |
| 44 | |
| 45 | /** |
| 46 | * Flushes pending Sentry events with a 2 second timeout and in a way that cannot create unhandled promise rejections. |
no test coverage detected