Skip to content

Commit

Permalink
remove console.warn on skip
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmcc3 committed Dec 20, 2022
1 parent 4a63462 commit 6bffbb1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,10 +157,7 @@ export function honeycombRequest({ apiKey, span }: HCReqArg) {
}

export async function sendToHoneycomb({ apiKey, span }: HCReqArg) {
if (!span.spans.length) {
console.warn("nothing to send");
return;
}
if (!span.spans.length) return;
const res = await fetch(honeycombRequest({ apiKey, span }));
if (!res.ok) console.warn("failed to send spans to honeycomb");
return res;
Expand Down

0 comments on commit 6bffbb1

Please sign in to comment.