Skip to content

Commit ba650eb

Browse files
committed
revert: remove accidental otel commit from main
Reverts only the 19 OTEL files from 5a7809a that ended up on main by mistake. The unrelated chat UI / .codex changes that were bundled into that commit are preserved on main; the OTEL work continues on the marcode/otel-analytics-genesis worktree branch.
1 parent e8bc7a4 commit ba650eb

19 files changed

Lines changed: 24 additions & 848 deletions

File tree

apps/landing/src/app/api/otel/traces/route.ts

Lines changed: 0 additions & 111 deletions
This file was deleted.

apps/landing/src/lib/otelRateLimit.ts

Lines changed: 0 additions & 70 deletions
This file was deleted.

apps/landing/src/lib/otelRedact.ts

Lines changed: 0 additions & 131 deletions
This file was deleted.

apps/landing/src/lib/otelVerifier.ts

Lines changed: 0 additions & 54 deletions
This file was deleted.
Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,10 @@
1-
const REQUIRED_ENV_VARS = [
2-
"JIRA_CLIENT_ID",
3-
"JIRA_CLIENT_SECRET",
4-
"OTEL_EXPORTER_OTLP_TRACES_ENDPOINT",
5-
] as const;
6-
7-
const OPTIONAL_ENV_VARS = ["OTEL_EXPORTER_OTLP_TRACES_HEADERS"] as const;
1+
const REQUIRED_ENV_VARS = ["JIRA_CLIENT_ID", "JIRA_CLIENT_SECRET"] as const;
82

93
export function validateEnv(): void {
104
const missing = REQUIRED_ENV_VARS.filter((key) => !process.env[key]);
115
if (missing.length > 0) {
126
throw new Error(
13-
`Missing required environment variables: ${missing.join(", ")}. Jira proxy and/or OTEL ingest will not function.`,
7+
`Missing required environment variables: ${missing.join(", ")}. Jira proxy will not function.`,
148
);
159
}
16-
for (const key of OPTIONAL_ENV_VARS) {
17-
if (!process.env[key]) {
18-
console.warn(
19-
`[validateEnv] ${key} is not set. OTEL ingest will forward to Tempo without auth headers.`,
20-
);
21-
}
22-
}
2310
}

0 commit comments

Comments
 (0)