Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

feat(otel): honeycomb

Gergő Móriczd32f26af54f3
diff --git a/apps/api/src/index.ts b/apps/api/src/index.ts
index d23d71bda..986059dde 100644
--- a/apps/api/src/index.ts
+++ b/apps/api/src/index.ts
@@ -60,7 +60,7 @@ cacheableLookup.install(https.globalAgent);
const shouldOtel =
process.env.LANGFUSE_PUBLIC_KEY ||
process.env.OTEL_EXPORTER_OTLP_ENDPOINT ||
- process.env.AXIOM_API_KEY;
+ process.env.HONEYCOMB_TEAM_ID;
const otelSdk = shouldOtel
? new NodeSDK({
resource: resourceFromAttributes({
@@ -79,14 +79,13 @@ const otelSdk = shouldOtel
),
]
: []),
- ...(process.env.AXIOM_API_KEY
+ ...(process.env.HONEYCOMB_TEAM_ID
? [
new BatchSpanProcessor(
new OTLPTraceExporter({
- url: "https://api.axiom.co/v1/traces",
+ url: "https://api.honeycomb.io/v1/traces",
headers: {
- Authorization: `Bearer ${process.env.AXIOM_API_KEY}`,
- "X-Axiom-Dataset": "firecrawl",
+ "x-honeycomb-team": process.env.HONEYCOMB_TEAM_ID,
},
}),
),
diff --git a/apps/api/src/services/queue-worker.ts b/apps/api/src/services/queue-worker.ts
index 4876ce413..5d4e549c2 100644
--- a/apps/api/src/services/queue-worker.ts
+++ b/apps/api/src/services/queue-worker.ts
@@ -64,7 +64,7 @@ cacheableLookup.install(https.globalAgent);
const shouldOtel =
process.env.LANGFUSE_PUBLIC_KEY ||
process.env.OTEL_EXPORTER_OTLP_ENDPOINT ||
- process.env.AXIOM_API_KEY;
+ process.env.HONEYCOMB_TEAM_ID;
const otelSdk = shouldOtel
? new NodeSDK({
resource: resourceFromAttributes({
@@ -83,14 +83,13 @@ const otelSdk = shouldOtel
),
]
: []),
- ...(process.env.AXIOM_API_KEY
+ ...(process.env.HONEYCOMB_TEAM_ID
? [
new BatchSpanProcessor(
new OTLPTraceExporter({
- url: "https://api.axiom.co/v1/traces",
+ url: "https://api.honeycomb.io/v1/traces",
headers: {
- Authorization: `Bearer ${process.env.AXIOM_API_KEY}`,
- "X-Axiom-Dataset": "firecrawl",
+ "x-honeycomb-team": process.env.HONEYCOMB_TEAM_ID,
},
}),
),
diff --git a/apps/api/src/services/worker/scrape-worker.ts b/apps/api/src/services/worker/scrape-worker.ts
index 5fedf6449..fa56f8dd4 100644
--- a/apps/api/src/services/worker/scrape-worker.ts
+++ b/apps/api/src/services/worker/scrape-worker.ts
@@ -1147,7 +1147,7 @@ export const processJobInternal = async (job: NuQJob<ScrapeJobData>) => {
const shouldOtel =
process.env.LANGFUSE_PUBLIC_KEY ||
process.env.OTEL_EXPORTER_OTLP_ENDPOINT ||
- process.env.AXIOM_API_KEY;
+ process.env.HONEYCOMB_TEAM_ID;
const otelSdk = shouldOtel
? new NodeSDK({
resource: resourceFromAttributes({
@@ -1166,14 +1166,13 @@ const otelSdk = shouldOtel
),
]
: []),
- ...(process.env.AXIOM_API_KEY
+ ...(process.env.HONEYCOMB_TEAM_ID
? [
new BatchSpanProcessor(
new OTLPTraceExporter({
- url: "https://api.axiom.co/v1/traces",
+ url: "https://api.honeycomb.io/v1/traces",
headers: {
- Authorization: `Bearer ${process.env.AXIOM_API_KEY}`,
- "X-Axiom-Dataset": "firecrawl",
+ "x-honeycomb-team": process.env.HONEYCOMB_TEAM_ID,
},
}),
),