Skip to content

fix(tracing): Make method required in transactionSampling type#4657

Merged
lobsterkatie merged 1 commit into
masterfrom
kmclb-make-transaction-sampling-method-required
Mar 1, 2022
Merged

fix(tracing): Make method required in transactionSampling type#4657
lobsterkatie merged 1 commit into
masterfrom
kmclb-make-transaction-sampling-method-required

Conversation

@lobsterkatie
Copy link
Copy Markdown
Member

Though every transaction should have transactionSampling metadata, we mark the property as optional because we add it after the transaction is created, in the process of computing a sampling decision for it. Once transactionSampling exists, however, it should always have a method property.

@AbhiPrasad
Copy link
Copy Markdown
Contributor

AbhiPrasad commented Mar 1, 2022

What motivated this change?

Nvm just saw your change in #4656 (comment)

@lobsterkatie
Copy link
Copy Markdown
Member Author

What motivated this change?

You're too fast, LOL. See my comment on the linked PR. Had to submit this before I could submit that.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Mar 1, 2022

size-limit report

Path Base Size (dee05a6) Current Size Change
@sentry/browser - ES5 CDN Bundle (gzipped + minified) 19.77 KB 19.77 KB 0%
@sentry/browser - ES5 CDN Bundle (minified) 63.47 KB 63.47 KB 0%
@sentry/browser - ES6 CDN Bundle (gzipped + minified) 18.44 KB 18.44 KB +0.02% 🔺
@sentry/browser - ES6 CDN Bundle (minified) 56.6 KB 56.6 KB 0%
@sentry/browser - Webpack (gzipped + minified) 22.2 KB 22.2 KB 0%
@sentry/browser - Webpack (minified) 76.36 KB 76.36 KB 0%
@sentry/react - Webpack (gzipped + minified) 22.23 KB 22.23 KB 0%
@sentry/nextjs Client - Webpack (gzipped + minified) 46.4 KB 46.4 KB 0%
@sentry/browser + @sentry/tracing - ES5 CDN Bundle (gzipped + minified) 27.22 KB 27.23 KB +0.01% 🔺

@lobsterkatie lobsterkatie merged commit e0ca11e into master Mar 1, 2022
@lobsterkatie lobsterkatie deleted the kmclb-make-transaction-sampling-method-required branch March 1, 2022 17:48
AbhiPrasad pushed a commit that referenced this pull request Mar 2, 2022
…4657)

Though every transaction should have `transactionSampling` metadata, we mark the property as optional because we add it after the transaction is created, in the process of computing a sampling decision for it. Once `transactionSampling` exists, however, it should always have a `method` property.
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