From 4a08c1ae9596f9a6f58176954dd831078e9c9352 Mon Sep 17 00:00:00 2001 From: Lukas Stracke Date: Mon, 23 Oct 2023 11:55:55 +0100 Subject: [PATCH] fix: Remove glob syntax from `tracePropagationTargets` example (#8312) --- .../distributed-tracing/how-to-use/apple.mdx | 4 ++-- .../distributed-tracing/how-to-use/javascript.mdx | 5 +---- .../distributed-tracing/how-to-use/javascript.nextjs.mdx | 5 +---- .../distributed-tracing/how-to-use/javascript.remix.mdx | 5 +---- .../distributed-tracing/how-to-use/javascript.sveltekit.mdx | 5 +---- .../distributed-tracing/how-to-use/react-native.mdx | 5 +---- .../distributed-tracing/limiting-traces/javascript.mdx | 5 +---- .../distributed-tracing/limiting-traces/node.mdx | 5 +---- 8 files changed, 9 insertions(+), 30 deletions(-) diff --git a/src/platform-includes/distributed-tracing/how-to-use/apple.mdx b/src/platform-includes/distributed-tracing/how-to-use/apple.mdx index 93c94fd2c96e1..d3b128999971e 100644 --- a/src/platform-includes/distributed-tracing/how-to-use/apple.mdx +++ b/src/platform-includes/distributed-tracing/how-to-use/apple.mdx @@ -7,7 +7,7 @@ SentrySDK.start { options in options.dsn = "___PUBLIC_DSN___" options.tracePropagationTargets = [ "https://myproject.org", - "https://.*.otherservice.org/.*", + "https://api.otherservice.org/", ] } ``` @@ -19,7 +19,7 @@ SentrySDK.start { options in options.dsn = @"___PUBLIC_DSN___"; options.tracePropagationTargets = @[ @"https://myproject.org", - @"https://.*.otherservice.org/.*" + @"https://api.otherservice.org/" ]; }]; ``` diff --git a/src/platform-includes/distributed-tracing/how-to-use/javascript.mdx b/src/platform-includes/distributed-tracing/how-to-use/javascript.mdx index 1295ba94515c4..69358362c6add 100644 --- a/src/platform-includes/distributed-tracing/how-to-use/javascript.mdx +++ b/src/platform-includes/distributed-tracing/how-to-use/javascript.mdx @@ -4,10 +4,7 @@ If you're using the current version of our JavaScript SDK and have enabled the ` Sentry.init({ dsn: "___PUBLIC_DSN___", integrations: [new Sentry.BrowserTracing()], - tracePropagationTargets: [ - "https://myproject.org", - "https://.*.otherservice.org/.*", - ], + tracePropagationTargets: ["https://myproject.org", /^\/api\//], }); ``` diff --git a/src/platform-includes/distributed-tracing/how-to-use/javascript.nextjs.mdx b/src/platform-includes/distributed-tracing/how-to-use/javascript.nextjs.mdx index f1c8c5a1d857d..0ac853d6fee2e 100644 --- a/src/platform-includes/distributed-tracing/how-to-use/javascript.nextjs.mdx +++ b/src/platform-includes/distributed-tracing/how-to-use/javascript.nextjs.mdx @@ -7,10 +7,7 @@ For client-side you might have to define `tracePropagationTargets` to get around Sentry.init({ dsn: "___PUBLIC_DSN___", integrations: [new Sentry.BrowserTracing()], - tracePropagationTargets: [ - "https://myproject.org", - "https://.*.otherservice.org/.*", - ], + tracePropagationTargets: ["https://myproject.org", /^\/api\//], }); ``` diff --git a/src/platform-includes/distributed-tracing/how-to-use/javascript.remix.mdx b/src/platform-includes/distributed-tracing/how-to-use/javascript.remix.mdx index 2ec65d62bb499..644be916789e2 100644 --- a/src/platform-includes/distributed-tracing/how-to-use/javascript.remix.mdx +++ b/src/platform-includes/distributed-tracing/how-to-use/javascript.remix.mdx @@ -5,10 +5,7 @@ If you're using the current version of our Remix SDK, distributed tracing will w Sentry.init({ dsn: "___PUBLIC_DSN___", integrations: [new Sentry.BrowserTracing()], - tracePropagationTargets: [ - "https://myproject.org", - "https://.*.otherservice.org/.*", - ], + tracePropagationTargets: ["https://myproject.org", /^\/api\//], }); ``` diff --git a/src/platform-includes/distributed-tracing/how-to-use/javascript.sveltekit.mdx b/src/platform-includes/distributed-tracing/how-to-use/javascript.sveltekit.mdx index cb92eb0403ba4..ab086759e8afd 100644 --- a/src/platform-includes/distributed-tracing/how-to-use/javascript.sveltekit.mdx +++ b/src/platform-includes/distributed-tracing/how-to-use/javascript.sveltekit.mdx @@ -5,10 +5,7 @@ If you're using the current version of our SvelteKit SDK, distributed tracing wi Sentry.init({ dsn: "___PUBLIC_DSN___", integrations: [new BrowserTracing()], - tracePropagationTargets: [ - "https://myproject.org", - "https://.*.otherservice.org/.*", - ], + tracePropagationTargets: ["https://myproject.org", /^\/api\//], }); ``` diff --git a/src/platform-includes/distributed-tracing/how-to-use/react-native.mdx b/src/platform-includes/distributed-tracing/how-to-use/react-native.mdx index 354965e506903..1939904bf0a29 100644 --- a/src/platform-includes/distributed-tracing/how-to-use/react-native.mdx +++ b/src/platform-includes/distributed-tracing/how-to-use/react-native.mdx @@ -3,10 +3,7 @@ If you're using the current version of our React Native SDK distributed tracing ```js Sentry.init({ dsn: "___PUBLIC_DSN___", - tracePropagationTargets: [ - "https://myproject.org", - "https://.*.otherservice.org/.*", - ], + tracePropagationTargets: ["https://myproject.org", /^\/api\//], }); ``` diff --git a/src/platform-includes/distributed-tracing/limiting-traces/javascript.mdx b/src/platform-includes/distributed-tracing/limiting-traces/javascript.mdx index abde562818076..f5843ec8b4c11 100644 --- a/src/platform-includes/distributed-tracing/limiting-traces/javascript.mdx +++ b/src/platform-includes/distributed-tracing/limiting-traces/javascript.mdx @@ -4,9 +4,6 @@ Sentry.init({ dsn: "___PUBLIC_DSN___", integrations: [new Sentry.BrowserTracing()], - tracePropagationTargets: [ - "https://myproject.org", - "https://.*.otherservice.org/.*", - ], + tracePropagationTargets: ["https://myproject.org", /^\/api\//], }); ``` diff --git a/src/platform-includes/distributed-tracing/limiting-traces/node.mdx b/src/platform-includes/distributed-tracing/limiting-traces/node.mdx index ebc0dd702a2ce..03a4468787e58 100644 --- a/src/platform-includes/distributed-tracing/limiting-traces/node.mdx +++ b/src/platform-includes/distributed-tracing/limiting-traces/node.mdx @@ -3,9 +3,6 @@ ```javascript Sentry.init({ dsn: "___PUBLIC_DSN___", - tracePropagationTargets: [ - "https://myproject.org", - "https://.*.otherservice.org/.*", - ], + tracePropagationTargets: ["https://myproject.org", /^\/api\//], }); ```