@hyperdx/instrumentation-sentry-node
Version:
[![NPM Published Version][npm-img]][npm-url] [![Apache License][license-image]][license-image]
14 lines • 682 B
TypeScript
import * as SentryTypesV7 from '@sentry/types-v7';
import * as SentryTypesV8 from '@sentry/types-v8';
import { InstrumentationConfig } from '@opentelemetry/instrumentation';
import { Span } from '@opentelemetry/api';
export type Event = SentryTypesV7.Event | SentryTypesV8.Event;
export type EventHint = SentryTypesV7.EventHint | SentryTypesV8.EventHint;
export type Exception = SentryTypesV7.Exception | SentryTypesV8.Exception;
export interface EventCustomAttributeFunction {
(span: Span, event: Event): void;
}
export interface SentryNodeInstrumentationConfig extends InstrumentationConfig {
eventHook?: EventCustomAttributeFunction;
}
//# sourceMappingURL=types.d.ts.map