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

WIP:Report correct ActiveSupport cache backend #2262

Closed
wants to merge 1 commit into from

Conversation

marcotc
Copy link
Member

@marcotc marcotc commented Sep 8, 2022

Solves #1252

We currently report the globally configured Rails.configuration.cache_store as the cache backend tag (rails.cache.backend) regardless if the instrumented ActiveSupport cache object is actually the global cache_store.

This causes applications with multiple caching backends to incorrectly always report Rails.configuration.cache_store as the backend of all cache clients.

This PR now reports the respective client for the instrument ActiveSupport cache object. Current users should see no change, as the tag value is kept backwards compatible for Rails applications using only the global cache_store object.

Users with multiple cache backends will now see them correctly reported in the rails.cache.backend span tag.

@marcotc
Copy link
Member Author

marcotc commented Oct 26, 2023

(blank)

@marcotc marcotc closed this Oct 26, 2023
@GustavoCaso GustavoCaso deleted the rails-cache-backend branch October 27, 2023 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Involves a bug integrations Involves tracing integrations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant