(value: string | undefined)
| 119 | // Per OTEL spec, "none" means "no automatically configured exporter for this signal". |
| 120 | // https://opentelemetry.io/docs/specs/otel/configuration/sdk-environment-variables/#exporter-selection |
| 121 | export function parseExporterTypes(value: string | undefined): string[] { |
| 122 | return (value || '') |
| 123 | .trim() |
| 124 | .split(',') |
| 125 | .filter(Boolean) |
| 126 | .map(t => t.trim()) |
| 127 | .filter(t => t !== 'none') |
| 128 | } |
| 129 | |
| 130 | async function getOtlpReaders() { |
| 131 | const exporterTypes = parseExporterTypes(process.env.OTEL_METRICS_EXPORTER) |
no outgoing calls
no test coverage detected