{"record":{"id":"a3ab645999fdb02b","repo":"different-ai/openwork","slug":"must-include-a-project-id","errorCode":null,"errorMessage":"must include a project id","messagePattern":"must include a project id","errorType":"validation","errorClass":"ObservabilityConfigError","httpStatus":null,"severity":"error","filePath":"ee/packages/utils/src/observability.ts","lineNumber":184,"sourceCode":"  }\n  if (!parsed.hostname) {\n    throw new ObservabilityConfigError(\"must include a hostname\", envKey)\n  }\n\n  return value\n}\n\nfunction validateSentryDsn(value: string): string {\n  validateHttpUrl(value, \"SENTRY_DSN\")\n\n  const parsed = new URL(value)\n  if (!parsed.username) {\n    throw new ObservabilityConfigError(\"must include a public key\", \"SENTRY_DSN\")\n  }\n\n  const projectId = parsed.pathname.split(\"/\").filter(Boolean).at(-1)\n  if (!projectId) {\n    throw new ObservabilityConfigError(\"must include a project id\", \"SENTRY_DSN\")\n  }\n\n  return value\n}\n\nfunction parseUnitInterval(raw: string, envKey: string): number {\n  const value = Number(raw)\n  if (!Number.isFinite(value) || value < 0 || value > 1) {\n    throw new ObservabilityConfigError(\"must be a number from 0 through 1\", envKey)\n  }\n  return value\n}\n\nfunction parseOtelProtocol(env: ObservabilityEnv, envKey: string, fallback: OTelProtocol): OTelProtocol {\n  const protocol = envValue(env, envKey)\n  if (protocol === undefined) {\n    return fallback\n  }","sourceCodeStart":166,"sourceCodeEnd":202,"githubUrl":"https://github.com/different-ai/openwork/blob/2b7df46e8ae1517d64c896c7793d2d52ec845669/ee/packages/utils/src/observability.ts#L166-L202","documentation":"Error \"must include a project id\" thrown in different-ai/openwork.","triggerScenarios":"Thrown at ee/packages/utils/src/observability.ts:184 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"}