apm-agent-ruby
apm-agent-ruby copied to clipboard
undefined method 'schedule_time' for nil:NilClass
Describe the bug
When exiting the rails server locally I'm getting the following error about 80% of the time

Thinking it's probably due to my setup but not sure about it. Also getting the error in our github build.
# elastic-apm.yml
secret_token: <%= ENV['ELASTIC_APM_SECRET_TOKEN'] %>
server_url: <%= ENV['ELASTIC_APM_SERVER_URL'] %>
environment: <%= ENV['RAILS_ENV'] %>
# application.rb
config.elastic_apm.service_name = "APM-Core-#{ENV['RAILS_ENV']}"
Steps to reproduce
- Add gem 'elastic-apm' to gemfile
- Add config
- Start rails server locally in development mode
- Close rails server
Expected behavior
No error when closing the rails server locally.
Environment
- OS:
- Ruby version: 2.6
- Framework and version:
- APM Server version: 7.14
- Agent version: 4.3.0
Additional context
I have no other options set for the APM agent.
Huh, what version of concurrent-ruby does your app use?
concurrent-ruby (1.1.9) concurrent-ruby-ext (1.1.9)