fix log processor

This commit is contained in:
Frank
2026-08-06 03:21:16 -04:00
parent b8bd88901a
commit 847771fe06
+11 -11
View File
@@ -54,15 +54,15 @@ export default {
console.log(JSON.stringify(data, null, 2)) console.log(JSON.stringify(data, null, 2))
const lakeIngest = getLakeIngest() const lakeIngest = getLakeIngest()
const [honeycomb, lake] = await Promise.all([ const [lake] = await Promise.all([
fetch("https://api.honeycomb.io/1/batch/zen", { // fetch("https://api.honeycomb.io/1/batch/zen", {
method: "POST", // method: "POST",
headers: { // headers: {
"Content-Type": "application/json", // "Content-Type": "application/json",
"X-Honeycomb-Team": Resource.HONEYCOMB_API_KEY.value, // "X-Honeycomb-Team": Resource.HONEYCOMB_API_KEY.value,
}, // },
body: JSON.stringify(events), // body: JSON.stringify(events),
}), // }),
...(lakeIngest ...(lakeIngest
? [ ? [
fetch(lakeIngest.url, { fetch(lakeIngest.url, {
@@ -76,8 +76,8 @@ export default {
] ]
: []), : []),
]) ])
console.log(honeycomb.status) // console.log(honeycomb.status)
console.log(await honeycomb.text()) // console.log(await honeycomb.text())
if (lake) { if (lake) {
console.log(lake.status) console.log(lake.status)
console.log(await lake.text()) console.log(await lake.text())