Skip to content

Commit

Permalink
chore(sentry): Add scope and tag to hub (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
faris-imi authored Oct 18, 2023
1 parent 1d8b97c commit 1a2d264
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions lib/src/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,11 @@ export function initSentry(sentry: boolean) {
});

hub = new Sentry.Hub(client);

hub.configureScope(function (scope) {
scope.setTag('source', '@hCaptcha/loader');
});

return hub;
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@hcaptcha/loader",
"description": "This is a JavaScript library to easily configure the loading of the hCaptcha JS client SDK with built-in error handling.",
"version": "1.0.4",
"version": "1.0.5",
"author": "hCaptcha team and contributors",
"license": "MIT",
"keywords": [
Expand Down

0 comments on commit 1a2d264

Please sign in to comment.