Skip to content

Conversation

@erichmachado
Copy link
Contributor

@erichmachado erichmachado commented Dec 9, 2024

This PR aims to introduce support for Regexp patterns to the OpenTelemetry::Instrumentation::ActiveSupport.subscribe method.

This should be in line with a similar feature available on ActiveSupport::Notifications.subscribe.

With this update, users will be able to:

  1. Subscribe to multiple events at once, if desired.
  2. Use the Regexp pattern directly without having to resort to a custom span_name_formatter to work around crashes when processing the event name.
  3. Process the incoming event name if span_name_formatter is set, since the name parameter in the initializer includes a reference to the Regexp pattern in this case.

@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Dec 9, 2024

CLA Signed

The committers listed above are authorized under a signed CLA.

@erichmachado erichmachado force-pushed the em-feat-active-support-instrumentation-regexp-subscription branch 2 times, most recently from 6cf922f to 9791e56 Compare December 10, 2024 23:35
@erichmachado erichmachado force-pushed the em-feat-active-support-instrumentation-regexp-subscription branch from 9791e56 to 835edc3 Compare December 10, 2024 23:40
@arielvalentin arielvalentin merged commit e745deb into open-telemetry:main Dec 19, 2024
56 checks passed
@github-actions github-actions bot mentioned this pull request Dec 19, 2024
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.

2 participants