different-ai/openwork · error · ObservabilityConfigError

service name is required

Error message

service name is required

What it means

Error "service name is required" thrown in different-ai/openwork.

Source

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

  }

  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)
  } catch {
    throw new ObservabilityConfigError("must be an absolute http(s) URL", envKey)
  }

  if (parsed.protocol !== "http:" && parsed.protocol !== "https:") {
    throw new ObservabilityConfigError("must use http or https", envKey)
  }
  if (!parsed.hostname) {
    throw new ObservabilityConfigError("must include a hostname", envKey)
  }

View on GitHub (pinned to 2b7df46e8a)

When it happens

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