Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to setup Sentry correctly on multiple instances using the same config #11

Open
m-overlund opened this issue Oct 4, 2024 · 0 comments

Comments

@m-overlund
Copy link

m-overlund commented Oct 4, 2024

Question

Hi

How do you setup Sentry correctly to load / not load when using several servers (staging/live setup)?
(ref: #5 (comment) and bundles file etc.)

What we've done:

  1. Load the two packages in bundles.php for both live and dev (all)
  2. set an attribute SENTRY_TRACING_ENABLED in each Live/Dev .env file.
  3. In config/packages/sentry.yaml we set
    ...
  sentry:
      dsn: "%env(SENTRY_DSN)%"
      tracing:
          enabled: "%env(bool:SENTRY_TRACING_ENABLED)%"

Both use prod as app_env

Issue

When developers code locally, sometimes they have to disable sentry to get itt work. It just should not load for them.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant