Skip to content
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

Support additional environment variables #573

Open
ybiquitous opened this issue Oct 29, 2019 · 2 comments
Open

Support additional environment variables #573

ybiquitous opened this issue Oct 29, 2019 · 2 comments
Labels
backlog We hope to fix this feature/bug in the future feature request Request for a new feature

Comments

@ybiquitous
Copy link

Description

I suggest that Bugsnag would support extra environment variables in addition to BUGSNAG_API_KEY when we configure Bugsnag.

Issue

Currently, Bugsnag supports only the BUGSNAG_API_KEY environment variable:

self.api_key = ENV["BUGSNAG_API_KEY"]

On the other hand, the bugsnag-capistrano gem supports the following variables:

  • BUGSNAG_API_KEY
  • BUGSNAG_APP_VERSION
  • BUGSNAG_BRANCH
  • BUGSNAG_RELEASE_STAGE
  • BUGSNAG_REVISION
  • BUGSNAG_REPOSITORY

I think it's very useful if this bugsnag-ruby gem would support the environment variables for configuration as the above example.

Now, we need to set explicitly as follow, but this seems to be verbose:

Bugsnag.configure do |config|
  config.release_stage = ENV["BUGSNAG_RELEASE_STAGE"]
end

https://github.com/sider/runners/blob/52dd7fd8fd48e316f934a886276e350907d8f433/bin/runners#L17

Environment

Library versions:

 * bugsnag (6.12.2)
@mattdyoung
Copy link

Hi @ybiquitous

Thanks for your suggestion. We'll consider this as part of future improvements across our Ruby error reporting libraries.

@mattdyoung mattdyoung added the feature request Request for a new feature label Nov 6, 2019
@ybiquitous
Copy link
Author

Thank you! I'm looking forward to it.

@abigailbramble abigailbramble added the backlog We hope to fix this feature/bug in the future label Dec 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog We hope to fix this feature/bug in the future feature request Request for a new feature
Projects
None yet
Development

No branches or pull requests

3 participants