Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@rogaldh
Copy link
Contributor

@rogaldh rogaldh commented Oct 14, 2025

Description

Alter configuration for Sentry. Increase the sample rate for Transactions and decrease it for Issues.

Type of change

  • Bug fix
  • New feature
  • Protocol integration
  • Documentation update
  • Other (please describe): configuration change

Screenshots

n/a

Testing

n/a

Related Issues

n/a

Checklist

  • My code follows the project's style guidelines
  • I have added tests that prove my fix/feature works
  • All tests pass locally and in CI
  • I have updated documentation as needed
  • CI/CD checks pass
    - [ ] I have included screenshots for protocol screens (if applicable)
    - [ ] For security-related features, I have included links to related information

Important

Centralizes Sentry configuration with createSentryConfig, adjusting sampling rates and updating initialization files.

  • Configuration:
    • Centralizes Sentry configuration in createSentryConfig in sentry/config.ts.
    • Adjusts sampleRate to 0.1 and tracesSampler to reduce span sampling in production.
  • Initialization:
    • Updates instrumentation-client.ts, sentry.edge.config.ts, and sentry.server.config.ts to use createSentryConfig.
  • Dependencies:
    • Adds @sentry/core to package.json dependencies.

This description was created by Ellipsis for a8ce065. You can customize this summary. It will automatically update as commits are pushed.

@vercel
Copy link

vercel bot commented Oct 14, 2025

@rogaldh is attempting to deploy a commit to the Solana Foundation Team on Vercel.

A member of the Team first needs to authorize it.

Copy link
Contributor

@ellipsis-dev ellipsis-dev bot left a 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 157 lines of code in 5 files
  • Skipped 1 files when reviewing.
  • Skipped posting 7 draft 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% <= threshold 50% 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% <= threshold 50% 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% <= threshold 50% 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% <= threshold 50% 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% <= threshold 50% 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 Ellipsis by changing your verbosity settings, reacting with 👍 or 👎, replying to comments, or adding code review rules.

@jacobcreech jacobcreech merged commit ac344d5 into solana-foundation:master Oct 16, 2025
2 of 3 checks passed
@rogaldh rogaldh deleted the chore/tweak-sentry-config-to-handle-lotta-spans branch October 17, 2025 17:47
@nataliefgibson13-svg
Copy link

Description

Alter configuration for Sentry. Increase the sample rate for Transactions and decrease it for Issues.

Type of change

  • Bug fix
  • New feature
  • Protocol integration
  • Documentation update
  • Other (please describe): configuration change

Screenshots

n/a

Testing

n/a

Related Issues

n/a

Checklist

  • My code follows the project's style guidelines
  • I have added tests that prove my fix/feature works
  • All tests pass locally and in CI
  • I have updated documentation as needed
  • CI/CD checks pass
    - [ ] I have included screenshots for protocol screens (if applicable)
    - [ ] For security-related features, I have included links to related information

[!IMPORTANT]
Centralizes Sentry configuration with createSentryConfig, adjusting sampling rates and updating initialization files.

  • Configuration:
    • Centralizes Sentry configuration in createSentryConfig in sentry/config.ts.
    • Adjusts sampleRate to 0.1 and tracesSampler to reduce span sampling in production.
  • Initialization:
    • Updates instrumentation-client.ts, sentry.edge.config.ts, and sentry.server.config.ts to use createSentryConfig.
  • Dependencies:
    • Adds @sentry/core to package.json dependencies.

This description was created by Ellipsis for a8ce065. You can customize this summary. It will automatically update as commits are pushed.

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.

3 participants