MCPcopy Create free account
hub / github.com/Effect-TS/effect / headers

Function headers

packages/effect/src/unstable/observability/internal/otlpEnv.ts:16–20  ·  view source on GitHub ↗
(signal: Signal)

Source from the content-addressed store, hash-verified

14const HeadersRecord = Config.Record(Schema.String, Schema.StringFromUriComponent)
15
16export const headers = (signal: Signal) =>
17 Config.schema(HeadersRecord, `OTEL_EXPORTER_OTLP_${signal}_HEADERS`).pipe(
18 Config.orElse(() => Config.schema(HeadersRecord, "OTEL_EXPORTER_OTLP_HEADERS")),
19 Config.withDefault(undefined)
20 )
21
22export const endpoint = (signal: Signal) =>
23 Config.url(`OTEL_EXPORTER_OTLP_${signal}_ENDPOINT`).pipe(

Callers

nothing calls this directly

Calls 3

orElseMethod · 0.80
pipeMethod · 0.65
schemaMethod · 0.45

Tested by

no test coverage detected