Skip to content

Commit 986fb3a

Browse files
authored
Merge pull request #103 from anam-org/alpha
fix: metadata always sent to metrics
2 parents 0fe568b + a52b24b commit 986fb3a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/lib/ClientError.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,10 @@ export const sendErrorMetric = async (
4141
body: JSON.stringify({
4242
name,
4343
value,
44-
tags,
44+
tags: {
45+
...CLIENT_METADATA,
46+
...tags,
47+
},
4548
}),
4649
},
4750
);
@@ -73,7 +76,6 @@ export class ClientError extends Error {
7376
sendErrorMetric('client_error', code, {
7477
details,
7578
statusCode,
76-
...CLIENT_METADATA,
7779
});
7880
}
7981
}

0 commit comments

Comments
 (0)