`APPSIGNAL_APP_ENV` is not taken into account in Sinatra integration
Closed this issue · 1 comments
cwaider commented
Describe the bug
According to the documentation, the APPSIGNAL_APP_ENV
environment variable can be used to overwrite environment settings for the runtime environment.
When using the integration for Sinatra, the environment pushed to Appsignal is overwritten by the Sinatra environment.
Appsignal.load(:sinatra)
seems to initialize a default config that uses the Sinatra app settings. This is running in a production environment in our example. This default config then seems to overwrite the initial config generated in Appsignal.start
.
To Reproduce
Steps to reproduce the behavior:
- Using AppSignal for Ruby gem version 3.12.1
- In my app using framework Sinatra version 4.0.0
- With this code:
require 'appsignal'
require 'sinatra'
Appsignal.load(:sinatra)
Appsignal.start
tombruijn commented
Fixed in Ruby gem 3.12.2.