Skip to content

Commit

Permalink
Remove axiom code
Browse files Browse the repository at this point in the history
  • Loading branch information
wong2 committed Feb 6, 2023
1 parent 73940f3 commit 3ce0a4d
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/analytics.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
export function captureEvent(event: string, properties?: object) {
fetch('https://api.axiom.co/v1/datasets/extension/ingest', {
method: 'POST',
headers: {
'Content-Type': 'application/x-ndjson',
Authorization: `Bearer ${process.env.AXIOM_TOKEN}`,
},
body: JSON.stringify({ event, ...(properties || {}) }),
}).catch((err) => console.error('captureEvent error', err))
// TODO
}

0 comments on commit 3ce0a4d

Please sign in to comment.