solarwinds-apm
Version:
OpenTelemetry-based SolarWinds APM library
10 lines • 840 B
TypeScript
import { type OTLPLogExporter } from "@opentelemetry/exporter-logs-otlp-proto";
import { type OTLPMetricExporter } from "@opentelemetry/exporter-metrics-otlp-proto";
import { type OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-proto";
import { type Configuration as NodeConfiguration } from "../config.js";
import { type Configuration as WebConfiguration } from "../web/config.js";
export type Configuration = NodeConfiguration | WebConfiguration;
type Options<Exporter extends new (options: never) => unknown> = Exporter extends new (options: infer Options) => unknown ? Options : never;
export declare function exporterConfig(config: Configuration, signal: "traces" | "metrics" | "logs"): Options<typeof OTLPTraceExporter | typeof OTLPMetricExporter | typeof OTLPLogExporter>;
export {};
//# sourceMappingURL=config.d.ts.map