fix log processor

This commit is contained in:
Frank 2026-08-06 03:21:16 -04:00
parent b8bd88901a
commit 847771fe06

View file

@ -54,15 +54,15 @@ export default {
console.log(JSON.stringify(data, null, 2))
const lakeIngest = getLakeIngest()
const [honeycomb, lake] = await Promise.all([
fetch("https://api.honeycomb.io/1/batch/zen", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Honeycomb-Team": Resource.HONEYCOMB_API_KEY.value,
},
body: JSON.stringify(events),
}),
const [lake] = await Promise.all([
// fetch("https://api.honeycomb.io/1/batch/zen", {
// method: "POST",
// headers: {
// "Content-Type": "application/json",
// "X-Honeycomb-Team": Resource.HONEYCOMB_API_KEY.value,
// },
// body: JSON.stringify(events),
// }),
...(lakeIngest
? [
fetch(lakeIngest.url, {
@ -76,8 +76,8 @@ export default {
]
: []),
])
console.log(honeycomb.status)
console.log(await honeycomb.text())
// console.log(honeycomb.status)
// console.log(await honeycomb.text())
if (lake) {
console.log(lake.status)
console.log(await lake.text())