Skip to content

feat(profiling): add profiles_sampler option#2082

Merged
Litarnus merged 2 commits intomasterfrom
profiles-sampler
May 5, 2026
Merged

feat(profiling): add profiles_sampler option#2082
Litarnus merged 2 commits intomasterfrom
profiles-sampler

Conversation

@Litarnus
Copy link
Copy Markdown
Contributor

@Litarnus Litarnus commented May 5, 2026

Adds support for profiles_sampler, which is a callback that returns a number between 0 and 1 to decide whether this transaction should be profiled or not. It takes precedence over regular profile_sample_rate

@Litarnus Litarnus linked an issue May 5, 2026 that may be closed by this pull request
@Litarnus Litarnus merged commit 81b8f96 into master May 5, 2026
83 of 84 checks passed
@Litarnus Litarnus deleted the profiles-sampler branch May 5, 2026 12:54
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.

Add profiles_sampler option similar to traces_sampler

2 participants