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

ActiveSupport notifications: allowlist event names #2610

Merged
merged 6 commits into from
Oct 18, 2024
Merged

ActiveSupport notifications: allowlist event names #2610

merged 6 commits into from
Oct 18, 2024

Conversation

fallwith
Copy link
Contributor

Added a new :'instrumentation.active_support_notifications.active_support_events' configuration parameter to permit a user defined allowlist of Active Support notifications event names for the agent to subscribe to that are related to the Active Support library itself.

Event names that are not included on the list will be ignored by the agent

Added a new :'instrumentation.active_support_notifications.active_support_events'
configuration parameter to permit a user defined allowlist of Active
Support notifications event names for the agent to subscribe to that are
related to the Active Support library itself.

Event names that are not included on the list will be ignored by the
agent.
don't attempt to subscribe to notifications based on an empty list
Now that the constant based hash is needed by default_source.rb, make
sure its class can successfully require the notifications class
put in a temporary Ruby version <= 2.4 path for older Rubies that don't
support `String#delete_prefix` and silence the RuboCop warning within
the Ruby <= 2.4 specific path.
reference the Active Support specific event names lists for caching and
messages in the documentation for the relevant configuration parameter
Reference the edge content with the fixed anchors

Co-authored-by: Kayla Reopelle (she/her) <87386821+kaylareopelle@users.noreply.github.com>
@fallwith
Copy link
Contributor Author

fallwith commented Jun 3, 2024

Closing for now. Please leave the branch alone. Tracking future developments with #2685.

@fallwith fallwith closed this Jun 3, 2024
@fallwith fallwith reopened this Oct 18, 2024
@fallwith fallwith changed the base branch from dev to lab October 18, 2024 18:40
@fallwith fallwith merged commit f7b3bd8 into lab Oct 18, 2024
35 checks passed
Copy link

SimpleCov Report

Coverage Threshold
Line 93.79% 93%
Branch 69.67% 50%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants