@splunk/otel
Version:
The Splunk distribution of OpenTelemetry Node Instrumentation provides a Node agent that automatically instruments your Node application to capture and report distributed traces to Splunk APM.
17 lines • 982 B
TypeScript
import { Tracer, SpanAttributes, Span } from '@opentelemetry/api';
import { DbStatementSerializer, ResponseHook } from './types';
import type { ApiResponse } from '@elastic/elasticsearch/lib/Transport';
interface StartSpanPayload {
tracer: Tracer;
attributes: SpanAttributes;
}
export declare function getIndexName(params: any): any;
export declare function startSpan({ tracer, attributes }: StartSpanPayload): Span;
export declare function normalizeArguments(params: unknown, options: unknown, callback: unknown): [object, object, Function];
export declare function getPort(port: string, protocol: string): string;
export declare function getNetAttributes(url: string): SpanAttributes;
export declare function onResponse(span: Span, result: ApiResponse, responseHook?: ResponseHook): void;
export declare function onError(span: Span, err: Error): void;
export declare const defaultDbStatementSerializer: DbStatementSerializer;
export {};
//# sourceMappingURL=utils.d.ts.map