UNPKG

@opentelemetry/core

Version:

OpenTelemetry Core provides constants and utilities shared by all OpenTelemetry SDK packages.

23 lines 784 B
import type { Exception } from '@opentelemetry/api'; /** * This interface defines the params that are be added to the wrapped function * using the "shimmer.wrap" */ export interface ShimWrapped extends Function { __wrapped: boolean; __unwrap: Function; __original: Function; } /** * An instrumentation scope consists of the name and optional version * used to obtain a tracer or meter from a provider. This metadata is made * available on ReadableSpan and MetricRecord for use by the export pipeline. */ export interface InstrumentationScope { readonly name: string; readonly version?: string; readonly schemaUrl?: string; } /** Defines an error handler function */ export type ErrorHandler = (ex: Exception) => void; //# sourceMappingURL=types.d.ts.map