Skip to content

Add sentry environment to sentry config section #996

Closed

Description

@montanaflynn

We are using sentry relay in staging and production environments and would like to have one sentry project for both of them.

This could be done by adding an environment field to the sentry config section:

    relay:
      mode: proxy
      port: 8080
    sentry: 
      enabled: true
      dsn: https://[email protected]/...
      environment: staging

Then we could switch between environments with sentry website UI:

Screen Shot 2021-05-17 at 17 25 06

Activity

  1. added
    enhancement
    on May 17, 2021
  2. untitaker commented on May 17, 2021

    @untitaker
    Member

    Seems legit. Do you have time to prepare a PR for this? Would also expose release etc.

  3. jan-auer commented on May 17, 2021

    @jan-auer
    Member

    This makes sense. Until we've added this, you can expose SENTRY_ENVIRONMENT="production" via env variables.

  4. jan-auer commented on May 17, 2021

    @jan-auer
    Member

    @untitaker I would not expose release, this is set during the build of Relay and should not be overridable.

  5. montanaflynn commented on May 17, 2021

    @montanaflynn
    Author

    @untitaker Sorry, I don't have the time or enough knowledge of Rust to make a PR for this.

  6. added this to the Maintenance milestone on Feb 2, 2023
  7. added
    filler
    on Feb 3, 2023
  8. self-assigned this
    on Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementfiller

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions