CaptureResult

Outcome of an explicit Node capture: a successful HTTP response, or a disable, sampling, validation, or send failure reason.

import type { CaptureResult } from '@threadplane/telemetry/node';

Declaration

export type CaptureResult = {
    sent: true;
} | {
    sent: false;
    reason: 'disabled' | 'sampled' | 'failed' | 'invalid';
};