Skip to content

feat(native): update transaction docs #13715

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

Merged
merged 1 commit into from
May 15, 2025

Conversation

JoshuaMoelans
Copy link
Member

DESCRIBE YOUR PR

Part of getsentry/sentry-native#1236

IS YOUR CHANGE URGENT?

Help us prioritize incoming PRs by letting us know when the change needs to go live.

  • Urgent deadline (GA date, etc.):
  • Other deadline:
  • None: Not urgent, can wait up to 1 week+

Copy link

vercel bot commented May 15, 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 May 15, 2025 10:01am
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
changelog ⬜️ Ignored (Inspect) May 15, 2025 10:01am
develop-docs ⬜️ Ignored (Inspect) May 15, 2025 10:01am

Copy link

codecov bot commented May 15, 2025

Bundle Report

Changes will increase total bundle size by 228 bytes (0.0%) ⬆️. This is within the configured threshold ✅

Detailed changes
Bundle name Size Change
sentry-docs-server-cjs 11.19MB 234 bytes (0.0%) ⬆️
sentry-docs-client-array-push 9.51MB -6 bytes (-0.0%) ⬇️

Affected Assets, Files, and Routes:

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%
../app/[[...path]]/page.js.nft.json 81 bytes 395.54kB 0.02%
../app/platform-redirect/page.js.nft.json 81 bytes 395.45kB 0.02%
../app/sitemap.xml/route.js.nft.json 81 bytes 393.43kB 0.02%
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 1.0kB -84.74%
server/middleware-*.js 5.55kB 6.55kB 555.3% ⚠️
static/H6Lh6BK6KVO1o2EXxf-*.js (New) 578 bytes 578 bytes 100.0% 🚀
static/H6Lh6BK6KVO1o2EXxf-*.js (New) 77 bytes 77 bytes 100.0% 🚀
static/rMWOakTP2TcW4nRWRVjwx/_buildManifest.js (Deleted) -578 bytes 0 bytes -100.0% 🗑️
static/rMWOakTP2TcW4nRWRVjwx/_ssgManifest.js (Deleted) -77 bytes 0 bytes -100.0% 🗑️


In its simplest form, used just for filtering the transaction, it looks like this:

<PlatformContent includePath="performance/traces-sampler-as-sampler" />
Copy link
Member Author

@JoshuaMoelans JoshuaMoelans May 15, 2025

Choose a reason for hiding this comment

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

Other SDKs use a separate example (traces-sampler-as-filter) but in our docs for completeness sake this would need to look very similar to the existing sampler-as-sampler example, so I opted to just point to the same one we already use in our Sampling docs.

(example on Android; sampling vs filtering

Copy link
Collaborator

Choose a reason for hiding this comment

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

To be honest, I don't really see the difference in the Android example either. Both show that you change the rate based on some X. One can probably be dropped in, whereas the other drops the concrete conditionals for prose.

Maybe I am blind, but sampling and filtering based on a dice roll seem like the same thing to me. What do the docs try to achieve by marking the distinction? Or is this only about the surrounding text?

In any case, I think linking this is fine.

@JoshuaMoelans JoshuaMoelans requested a review from supervacuus May 15, 2025 10:05

In its simplest form, used just for filtering the transaction, it looks like this:

<PlatformContent includePath="performance/traces-sampler-as-sampler" />
Copy link
Collaborator

Choose a reason for hiding this comment

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

To be honest, I don't really see the difference in the Android example either. Both show that you change the rate based on some X. One can probably be dropped in, whereas the other drops the concrete conditionals for prose.

Maybe I am blind, but sampling and filtering based on a dice roll seem like the same thing to me. What do the docs try to achieve by marking the distinction? Or is this only about the surrounding text?

In any case, I think linking this is fine.

@JoshuaMoelans JoshuaMoelans merged commit df0ea49 into master May 15, 2025
13 checks passed
@JoshuaMoelans JoshuaMoelans deleted the joshua/native_before_transaction branch May 15, 2025 10:25
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.

2 participants