-
Notifications
You must be signed in to change notification settings - Fork 485
chore: improve config for sentry to withstand spans #723
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
chore: improve config for sentry to withstand spans #723
Conversation
|
@rogaldh is attempting to deploy a commit to the Solana Foundation Team on Vercel. A member of the Team first needs to authorize it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Caution
Changes requested ❌
Reviewed everything up to a8ce065 in 2 minutes and 37 seconds. Click for details.
- Reviewed
157lines of code in5files - Skipped
1files when reviewing. - Skipped posting
7draft comments. View those below. - Modify your settings and rules to customize what types of comments Ellipsis leaves. And don't forget to react with 👍 or 👎 to teach Ellipsis.
1. instrumentation-client.ts:7
- Draft comment:
Good refactoring—centralizing Sentry configuration via createSentryConfig(). - Reason this comment was not posted:
Confidence changes required:0%<= threshold50%None
2. package.json:40
- Draft comment:
Addition of @sentry/core dependency looks appropriate. Ensure its version is fully compatible with @sentry/nextjs. - Reason this comment was not posted:
Confidence changes required:0%<= threshold50%None
3. sentry.edge.config.ts:8
- Draft comment:
Consistently using createSentryConfig with 'edge' context. Consider if context-specific overrides are needed in the future. - Reason this comment was not posted:
Confidence changes required:33%<= threshold50%None
4. sentry.server.config.ts:7
- Draft comment:
Consistently using createSentryConfig with 'server' context. Looks good. - Reason this comment was not posted:
Confidence changes required:0%<= threshold50%None
5. sentry/config.ts:21
- Draft comment:
The check for '/api/ping' (lines 22-23) is redundant since the subsequent check for '/api/' (lines 27-28) already excludes all API endpoints. If intentional for clarity, consider adding a comment. - Reason this comment was not posted:
Decided after close inspection that this draft comment was likely wrong and/or not actionable: usefulness confidence = 10% vs. threshold = 50% While technically correct that /api/ping would be caught by /api/, having the specific check first with its own comment about health checks provides better clarity and maintainability. The redundancy appears intentional for documentation purposes. The comment suggests adding another comment, which goes against our rules about purely informative suggestions. The redundancy could be a deliberate pattern for future extensibility where ping endpoints might need different handling. Also, explicit checks for health endpoints are a common pattern. The intentional redundancy serves documentation and maintainability purposes, and the comment's suggestion to add more documentation isn't actionable enough. Delete the comment as it points out a technically true but intentionally redundant pattern that serves code clarity, and its suggestion is purely informational.
6. sentry/config.ts:12
- Draft comment:
sampleRate is now set to 0.1 (doubling the previous rate of 0.05). Verify that this change aligns with your intended behavior given the PR description. - Reason this comment was not posted:
Comment did not seem useful. Confidence is useful =0%<= threshold50%The comment is asking the PR author to verify their intention, which is against the rules. It does not provide a specific suggestion or ask for a specific test to be written. It also references the PR description, which is not allowed.
7. sentry/config.ts:33
- Draft comment:
The production tracesSampler returns 0.0005, a significant drop from the previous 0.05. Confirm this aggressive reduction in transaction sampling is intentional to mitigate span volume. - Reason this comment was not posted:
Comment looked like it was already resolved.
Workflow ID: wflow_06oxYGA3bajFeL7i
You can customize by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.
|
Description
Alter configuration for Sentry. Increase the sample rate for Transactions and decrease it for Issues.
Type of change
Screenshots
n/a
Testing
n/a
Related Issues
n/a
Checklist
- [ ] I have included screenshots for protocol screens (if applicable)- [ ] For security-related features, I have included links to related informationImportant
Centralizes Sentry configuration with
createSentryConfig, adjusting sampling rates and updating initialization files.createSentryConfiginsentry/config.ts.sampleRateto 0.1 andtracesSamplerto reduce span sampling in production.instrumentation-client.ts,sentry.edge.config.ts, andsentry.server.config.tsto usecreateSentryConfig.@sentry/coretopackage.jsondependencies.This description was created by
for a8ce065. You can customize this summary. It will automatically update as commits are pushed.