@ogcio/o11y-sdk-node
Version:
Opentelemetry standard instrumentation SDK for NodeJS based project
12 lines (11 loc) • 559 B
TypeScript
import type { Context } from "@opentelemetry/api";
import type { ReadableSpan, Span, SpanProcessor } from "@opentelemetry/sdk-trace-base";
import type { SignalAttributeValue } from "../index.js";
export declare class EnrichSpanProcessor implements SpanProcessor {
private readonly _spanAttributes;
constructor(spanAttributes?: Record<string, SignalAttributeValue | (() => SignalAttributeValue)>);
forceFlush(): Promise<void>;
onStart(span: Span, _context: Context): void;
onEnd(_span: ReadableSpan): void;
shutdown(): Promise<void>;
}