different-ai/openwork · error · ObservabilityConfigError

must be one of none, otel, sentry (DEN_OBSERVABILITY_BACKEND

Error message

must be one of none, otel, sentry (DEN_OBSERVABILITY_BACKEND)

What it means

Error "must be one of none, otel, sentry (DEN_OBSERVABILITY_BACKEND)" thrown in different-ai/openwork.

Source

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

  }

  const trimmed = value.trim()
  return trimmed ? trimmed : undefined
}

function parseBackend(env: ObservabilityEnv): ObservabilityBackend {
  const backend = envValue(env, "DEN_OBSERVABILITY_BACKEND")
  if (backend === undefined) {
    return "none"
  }

  switch (backend) {
    case "none":
    case "otel":
    case "sentry":
      return backend
    default:
      throw new ObservabilityConfigError(
        "must be one of none, otel, sentry",
        "DEN_OBSERVABILITY_BACKEND",
      )
  }
}

function requireServiceName(serviceName: string): string {
  const trimmed = serviceName.trim()
  if (!trimmed) {
    throw new ObservabilityConfigError("service name is required")
  }
  return trimmed
}

function validateHttpUrl(value: string, envKey: string): string {
  let parsed: URL
  try {
    parsed = new URL(value)

View on GitHub (pinned to 2b7df46e8a)

When it happens

Trigger: Thrown at ee/packages/utils/src/observability.ts:141 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/57c20f0c4eb159ad. Report an issue: GitHub.