different-ai/openwork · error · ObservabilityConfigError

is required when the signal exporter is otlp

Error message

is required when the signal exporter is otlp

What it means

Error "is required when the signal exporter is otlp" thrown in different-ai/openwork.

Source

Thrown at ee/packages/utils/src/observability.ts:352

  } else if (baseEndpoint !== undefined) {
    endpoint = appendOtelSignalPath(baseEndpoint, signal)
    endpointSource = "base"
  }

  return {
    exporter: parseOtelExporter(env, keys.exporter),
    protocol: parseOtelProtocol(env, keys.protocol, protocol),
    endpoint,
    endpointSource,
  }
}

function validateOtelSignalEndpoint(signal: OTelSignal, config: OTelSignalConfig): void {
  if (config.exporter === "none" || config.endpoint !== undefined) {
    return
  }

  throw new ObservabilityConfigError(
    "is required when the signal exporter is otlp",
    otelSignalEnv(signal).endpoint,
  )
}

function parseOtelConfig(env: ObservabilityEnv): OTelObservabilityConfig {
  const protocol = parseOtelProtocol(env, "OTEL_EXPORTER_OTLP_PROTOCOL", OTEL_DEFAULT_PROTOCOL)
  const rawBaseEndpoint = envValue(env, "OTEL_EXPORTER_OTLP_ENDPOINT")
  const baseEndpoint = rawBaseEndpoint === undefined
    ? undefined
    : validateHttpUrl(rawBaseEndpoint, "OTEL_EXPORTER_OTLP_ENDPOINT")
  const sampler = parseOtelSampler(env)

  const signals = {
    traces: parseOtelSignal(env, "traces", protocol, baseEndpoint),
    metrics: parseOtelSignal(env, "metrics", protocol, baseEndpoint),
    logs: parseOtelSignal(env, "logs", protocol, baseEndpoint),
  }

View on GitHub (pinned to 2b7df46e8a)

When it happens

Trigger: Thrown at ee/packages/utils/src/observability.ts:352 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of different-ai/openwork@2b7df46e8a (2026-09-01). Data as JSON: /api/errors/d9c820e02c4a7c4b. Report an issue: GitHub.