Skip to content

Commit c2e9ac7

Browse files
fix: AxiomJS Transport usage examples in react and js docs (#296)
1 parent ff2937a commit c2e9ac7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

guides/javascript.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,10 @@ const axiom = new Axiom({
156156
const logger = new Logger(
157157
{
158158
transports: [
159-
new AxiomJSTransport({ axiom }),
159+
new AxiomJSTransport({
160+
axiom,
161+
dataset: process.env.AXIOM_DATASET,
162+
}),
160163
new ConsoleTransport(),
161164
],
162165
}

send-data/react.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ This page explains how to use the @axiomhq/react library to send data from your
6363
export const logger = new Logger({
6464
transports: [
6565
new AxiomJSTransport({
66-
client: axiomClient,
66+
axiom: axiomClient,
6767
dataset: process.env.AXIOM_DATASET!,
6868
}),
6969
],

0 commit comments

Comments
 (0)