Skip to content

Skip Active Support Logger instrumentation for Rails 7.1#2246

Merged
kaylareopelle merged 1 commit intodevfrom
skip-active-support-logger-instrumentation-for-rails-71
Oct 9, 2023
Merged

Skip Active Support Logger instrumentation for Rails 7.1#2246
kaylareopelle merged 1 commit intodevfrom
skip-active-support-logger-instrumentation-for-rails-71

Conversation

@kaylareopelle
Copy link
Contributor

The private method ActiveSupport::Logger.broadcast has been removed
in Rails 7.1. This throws an error in our tests. It also prevents the
@skip_instrumenting instance variable from being set on broadcast
loggers. This may cause users of Rails 7.1 to send duplicate
log events to New Relic.

This change stops ActiveSupport::Logger instrumentation from being
installed on Rails 7.1 or above. This is intended to be a temporary
measure until a solution can be found to stop sending duplicate logs
in Rails 7.1.

@kaylareopelle kaylareopelle force-pushed the skip-active-support-logger-instrumentation-for-rails-71 branch from 83aab80 to ba64660 Compare October 9, 2023 21:37
@kaylareopelle kaylareopelle added core technology rails Issues related to the Ruby on Rails framework labels Oct 9, 2023
fallwith
fallwith previously approved these changes Oct 9, 2023
The private method ActiveSupport::Logger.broadcast has been removed
in Rails 7.1. This throws an error in our tests. It also prevents the
@skip_instrumenting instance variable from being set on broadcasted
loggers. This may cause users of Rails 7.1 to send duplicate
log events to New Relic.

This change stops ActiveSupport::Logger instrumentation from being
installed on Rails 7.1 or above. This is intended to be a temporary
measure until a solution can be found to stop sending duplicate logs
in Rails 7.1.
@kaylareopelle kaylareopelle force-pushed the skip-active-support-logger-instrumentation-for-rails-71 branch from ba64660 to 257aeb3 Compare October 9, 2023 21:54
@kaylareopelle kaylareopelle merged commit 4c4cfd0 into dev Oct 9, 2023
@kaylareopelle kaylareopelle deleted the skip-active-support-logger-instrumentation-for-rails-71 branch October 9, 2023 22:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core technology rails Issues related to the Ruby on Rails framework

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants