Skip to content

Commit 1a2d264

Browse files
authored
chore(sentry): Add scope and tag to hub (#6)
1 parent 1d8b97c commit 1a2d264

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

lib/src/sentry.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ export function initSentry(sentry: boolean) {
3131
});
3232

3333
hub = new Sentry.Hub(client);
34+
35+
hub.configureScope(function (scope) {
36+
scope.setTag('source', '@hCaptcha/loader');
37+
});
38+
3439
return hub;
3540
}
3641

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@hcaptcha/loader",
33
"description": "This is a JavaScript library to easily configure the loading of the hCaptcha JS client SDK with built-in error handling.",
4-
"version": "1.0.4",
4+
"version": "1.0.5",
55
"author": "hCaptcha team and contributors",
66
"license": "MIT",
77
"keywords": [

0 commit comments

Comments
 (0)