UNPKG

@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.

21 lines 802 B
import type { ResourceFactory } from '../types'; import type { MetricReader, ViewOptions } from '@opentelemetry/sdk-metrics'; import type { Resource } from '@opentelemetry/resources'; export type MetricReaderFactory = (options: MetricsOptions) => MetricReader[]; export interface MetricsOptions { accessToken: string; realm?: string; serviceName: string; endpoint?: string; resource: Resource; views?: ViewOptions[]; exportIntervalMillis: number; metricReaderFactory: MetricReaderFactory; debugMetricsEnabled: boolean; runtimeMetricsEnabled: boolean; runtimeMetricsCollectionIntervalMillis: number; } export type StartMetricsOptions = Partial<Omit<MetricsOptions, 'resource'>> & { resourceFactory?: ResourceFactory; }; //# sourceMappingURL=types.d.ts.map