@hyperdx/instrumentation-sentry-node
Version:
[![NPM Published Version][npm-img]][npm-url] [![Apache License][license-image]][license-image]
82 lines • 3.34 kB
TypeScript
import { Attributes, Span, Tracer } from '@opentelemetry/api';
import type { Event, EventHint, Exception } from './types';
export declare const SEMATTRS_EXCEPTION_MECHANISM = "exception.mechanism";
export declare const SEMATTRS_EXCEPTION_MODULE = "exception.module";
export declare const SEMATTRS_EXCEPTION_MODULES = "exception.modules";
export declare const SEMATTRS_EXCEPTION_PARSED_STACKTRACE = "exception.parsed_stacktrace";
export declare const SEMATTRS_EXCEPTION_TAGS = "exception.tags";
export declare const SEMATTRS_EXCEPTION_THREAD_ID = "exception.thread_id";
export declare const SEMATTRS_SENTRY_VERSION = "sentry.version";
export declare const extractSemAttrsFromEvent: (event: Event, hint: EventHint, sentryVersion?: string) => {
'host.name': string;
'device.id': string;
'device.manufacturer': string;
'device.model.identifier': string;
'device.model.name': string;
'device.type': string;
'device.battery_level': number;
'device.battery_status': string;
'device.orientation': "portrait" | "landscape";
'device.brand': string;
'device.sreen_resolution': string;
'device.screen_height_pixels': number;
'device.screen_width_pixels': number;
'device.screen_density': number;
'device.screen_dpi': number;
'device.online': boolean;
'device.charging': boolean;
'device.supports_vibration': boolean;
'device.supports_accelerometer': boolean;
'device.supports_gyroscope': boolean;
'device.supports_audio': boolean;
'device.supports_location_service': boolean;
'device.boot_time': string;
'device.low_memory': boolean;
'device.simulator': boolean;
'device.memory_size': number;
'device.free_memory': number;
'device.usable_memory': number;
'device.storage_size': number;
'device.free_storage': number;
'device.external_storage_size': number;
'device.external_free_storage': number;
'host.cpu.model.name': string;
'host.cpu.count': number;
'host.cpu.frequency': number;
'os.build_id': string;
'os.kernel_version': string;
'os.type': string;
'os.version': string;
'cloud.provider': string;
'cloud.account.id': string;
'cloud.region': string;
'cloud.availability_zone': string;
'cloud.platform': string;
'host.id': string;
'host.type': string;
"http.status_code": number;
"http.response_content_length": number;
'app.build_type': string;
'app.id': string;
'app.memory': number;
'app.name': string;
'app.start_time': string;
'app.version': string;
"exception.tags": string;
"exception.modules": string;
"sentry.version": string;
};
export declare const extractSpanEventsFromException: (exception: Exception) => {
"exception.thread_id": number;
"exception.module": string;
"exception.mechanism": string;
"exception.message": string;
"exception.parsed_stacktrace": string;
"exception.type": string;
};
export declare const isSentryEventAnException: (event: Event) => boolean;
export declare const getSpanNameFromEvent: (event: Event) => string;
type EventProcessor = (event: any, hint: any, span?: Span, attributes?: Attributes) => any;
export declare const getEventProcessor: (tracer?: Tracer, sentryVersion?: string) => EventProcessor;
export {};
//# sourceMappingURL=eventProcessor.d.ts.map