apm-agent-ruby icon indicating copy to clipboard operation
apm-agent-ruby copied to clipboard

undefined method 'schedule_time' for nil:NilClass

Open dan-fodorean opened this issue 4 years ago • 2 comments

Describe the bug

When exiting the rails server locally I'm getting the following error about 80% of the time

image

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

  1. Add gem 'elastic-apm' to gemfile
  2. Add config
  3. Start rails server locally in development mode
  4. 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.

dan-fodorean avatar Oct 20 '21 00:10 dan-fodorean

Huh, what version of concurrent-ruby does your app use?

mikker avatar Oct 25 '21 13:10 mikker

concurrent-ruby (1.1.9) concurrent-ruby-ext (1.1.9)

dan-fodorean avatar Oct 25 '21 14:10 dan-fodorean