-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add the ':additional_paths' configuration option to enable tracing on non-Rails-routable paths #142
Add the ':additional_paths' configuration option to enable tracing on non-Rails-routable paths #142
Conversation
… non-Rails-routable paths
@@ -26,8 +26,6 @@ def initialize(app, config_hash) | |||
@sample_rate = config[:sample_rate] || DEFAULTS[:sample_rate] | |||
# A block of code which can be called to do extra annotations of traces | |||
@annotate_plugin = config[:annotate_plugin] # call for trace annotation | |||
@filter_plugin = config[:filter_plugin] # skip tracing if returns false | |||
@whitelist_plugin = config[:whitelist_plugin] # force sampling if returns true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to set twice (see below) 😎
The naming might be too broad to explain what this does but I can't find a better alternative. Otherwise LGTM. |
It is not bad, I'm concerned if some day we want to base this decision on other thing other than paths, like headers or something, then we need to change this somehow... |
I've read the related code, and it is a mess. Probably my fault. There are different places where we do checks on sampling. We should consolidate. The And now we have all the stuff in there. Then here this would be the logic: This is set to the trace once here and then we can delete from faraday and excon the check on if something is routable. We thus do not need to add a new configuration key. We need to fix how the whitelist plugin is used. To achieve the original intent, someone will pass something like to the whitelist plugin |
@jcarres-mdsol |
True. |
closing in favor of #143 |
Add the
:additional_paths
configuration option to enable tracing on non-Rails-routable paths, such as in apps using Roda, Sinatra.This is another approach to solve the issue in #130
@cabbott @jcarres-mdsol @jfeltesse-mdsol @ssteeg-mdsol @piao-mdsol @adriancole