Skip to content

Commit

Permalink
chore: try out regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Wozacosta committed Feb 13, 2025
1 parent 6a3258f commit 059d18a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions apps/ledger-live-mobile/src/sentry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,9 @@ export const navigationIntegration = Sentry.reactNavigationIntegration({

const SENTRY_DEBUG = Config.SENTRY_DEBUG === "true" && __DEV__;

// const stacksEndpoint = getEnv("API_STACKS_ENDPOINT");
// const regex = new RegExp(`^(?!${stacksEndpoint.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}$).*`);
// const stacksendpoint = getenv("api_stacks_endpoint");
// const regex = new regexp(`^(?!${stacksendpoint.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')}$).*`);
const regex = new RegExp(`^(?!https:\/\/stacks\.coin\.ledger\.com(?:\/.*)?$).*`)


if (sentryEnabled) {
Expand All @@ -110,7 +111,7 @@ if (sentryEnabled) {
enableAppHangTracking: true,
profilesSampleRate: Config.FORCE_SENTRY ? 1 : 0.0002,
tracesSampleRate: Config.FORCE_SENTRY ? 1 : 0.0002,
// tracePropagationTargets: [https:\/\/stacks.coin.ledger.com.*],
tracePropagationTargets: [regex],
integrations: [
navigationIntegration,
Sentry.reactNativeTracingIntegration({
Expand Down

0 comments on commit 059d18a

Please sign in to comment.