{"record":{"id":"4b62a50e8aeb91df","repo":"different-ai/openwork","slug":"must-be-otlp-or-none","errorCode":null,"errorMessage":"must be otlp or none","messagePattern":"must be otlp or none","errorType":"validation","errorClass":"ObservabilityConfigError","httpStatus":null,"severity":"error","filePath":"ee/packages/utils/src/observability.ts","lineNumber":222,"sourceCode":"  if (protocol === \"http/protobuf\") {\n    return protocol\n  }\n\n  throw new ObservabilityConfigError(\"must be http/protobuf\", envKey)\n}\n\nfunction parseOtelExporter(env: ObservabilityEnv, envKey: string): OTelSignalExporter {\n  const exporter = envValue(env, envKey)\n  if (exporter === undefined) {\n    return \"otlp\"\n  }\n\n  switch (exporter) {\n    case \"otlp\":\n    case \"none\":\n      return exporter\n    default:\n      throw new ObservabilityConfigError(\"must be otlp or none\", envKey)\n  }\n}\n\nfunction parseOtelSamplerName(env: ObservabilityEnv): OTelSampler {\n  const sampler = envValue(env, \"OTEL_TRACES_SAMPLER\")\n  if (sampler === undefined) {\n    return \"parentbased_always_on\"\n  }\n\n  switch (sampler) {\n    case \"always_on\":\n    case \"always_off\":\n    case \"traceidratio\":\n    case \"parentbased_always_on\":\n    case \"parentbased_always_off\":\n    case \"parentbased_traceidratio\":\n      return sampler\n    default:","sourceCodeStart":204,"sourceCodeEnd":240,"githubUrl":"https://github.com/different-ai/openwork/blob/2b7df46e8ae1517d64c896c7793d2d52ec845669/ee/packages/utils/src/observability.ts#L204-L240","documentation":"Error \"must be otlp or none\" thrown in different-ai/openwork.","triggerScenarios":"Thrown at ee/packages/utils/src/observability.ts:222 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"2b7df46e8ae1517d64c896c7793d2d52ec845669","analyzedAt":"2026-09-01T07:59:23.713Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-08T10:18:20.063Z"}