Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(js): Small fixes to configure sampling structure #13230

Merged
merged 2 commits into from
Apr 7, 2025
Merged

Conversation

mydea
Copy link
Member

@mydea mydea commented Apr 4, 2025

Noticed this is a bit off now, so fixing/aligning doc structure here.

@mydea mydea requested review from Lms24, codyde and s1gr1d April 4, 2025 09:25
@mydea mydea self-assigned this Apr 4, 2025
Copy link

vercel bot commented Apr 4, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sentry-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 7, 2025 6:47am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
changelog ⬜️ Ignored (Inspect) Visit Preview Apr 7, 2025 6:47am
develop-docs ⬜️ Ignored (Inspect) Visit Preview Apr 7, 2025 6:47am

Copy link

codecov bot commented Apr 4, 2025

Bundle Report

Changes will decrease total bundle size by 15 bytes (-0.0%) ⬇️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 11.13MB -9 bytes (-0.0%) ⬇️
sentry-docs-client-array-push 9.47MB -6 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

view changes for bundle: sentry-docs-client-array-push

Assets Changed:

Asset Name Size Change Total Size Change (%)
static/chunks/pages/_app-*.js -3 bytes 868.7kB -0.0%
static/chunks/8165-*.js -3 bytes 410.1kB -0.0%
server/middleware-*.js 5.55kB 6.55kB 555.3% ⚠️
server/middleware-*.js -5.55kB 1.0kB -84.74%
static/MqBQXucgC8ooO1SHJYmUF/_buildManifest.js (New) 578 bytes 578 bytes 100.0% 🚀
static/MqBQXucgC8ooO1SHJYmUF/_ssgManifest.js (New) 77 bytes 77 bytes 100.0% 🚀
static/tOeYYeBpLdzU-*.js (Deleted) -578 bytes 0 bytes -100.0% 🗑️
static/tOeYYeBpLdzU-*.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️
view changes for bundle: sentry-docs-server-cjs

Assets Changed:

Asset Name Size Change Total Size Change (%)
1729.js -3 bytes 1.75MB -0.0%
../instrumentation.js -3 bytes 1.08MB -0.0%
9523.js -3 bytes 1.05MB -0.0%

@@ -125,7 +127,7 @@ tracesSampler: (samplingContext) => {

When multiple sampling mechanisms could apply, Sentry follows this order of precedence:

- If `tracesSampler` is defined, its decision is used. Although the `tracesSampler` can override the parent sampling decision, most users will want to ensure their `tracesSampler` respects the parent sampling decision.
- If `tracesSampler` is defined, its decision is used. Although the `tracesSampler` can override the parent sampling decision, most users will want to ensure their `tracesSampler` respects the parent sampling decision.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It might be hard to understand what to "parent sampling decision" is, if one is not super familiar with tracing.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

true, we can adjust this in a follow up maybe! Always hard to explain these things properly 😬

@mydea mydea merged commit f766838 into master Apr 7, 2025
11 checks passed
@mydea mydea deleted the fn/traces-sampler branch April 7, 2025 08:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants