Compare commits

...

1 Commits

Author SHA1 Message Date
Frank 847771fe06 fix log processor 2026-08-06 03:21:16 -04:00
+11 -11
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())