MCPcopy Index your code
hub / github.com/codeaashu/claude-code / parseExporterTypes

Function parseExporterTypes

src/utils/telemetry/instrumentation.ts:121–128  ·  view source on GitHub ↗
(value: string | undefined)

Source from the content-addressed store, hash-verified

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
121export 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
130async function getOtlpReaders() {
131 const exporterTypes = parseExporterTypes(process.env.OTEL_METRICS_EXPORTER)

Callers 3

getOtlpReadersFunction · 0.85
getOtlpLogExportersFunction · 0.85
getOtlpTraceExportersFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected