You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Say I have a sampling rule like this with priority 1:
The only other rule configured is the Default rule.
I'd expect for this sampling rule to apply to a service, which starts it's segment like XRay.recorder.begin_segment 'anotherService' and no others, in order to throttle tracing data originating from anotherService.
However, it appears to also match in our case to other documents than originally intended and thus is effectively becoming the new default.
From our document I can see that the rule has been applied (censored some bits):
I confirmed this is a bug. The sampling rule definition is mostly http centric (host, url, path etc) and the matching is done at middleware level if the rack middleware is used for generating segments. But as you can see when manually creating segment the SDK doesn't match against anything so the rule with highest priority always matches: https://github.com/aws/aws-xray-sdk-ruby/blob/master/lib/aws-xray-sdk/recorder.rb#L31-L32
But the field service_name should apply to all scenarios such that manually creating a segment also respects that pattern. We will fix this.
Say I have a sampling rule like this with priority 1:
The only other rule configured is the Default rule.
I'd expect for this sampling rule to apply to a service, which starts it's segment like
XRay.recorder.begin_segment 'anotherService'
and no others, in order to throttle tracing data originating fromanotherService
.However, it appears to also match in our case to other documents than originally intended and thus is effectively becoming the new default.
From our document I can see that the rule has been applied (censored some bits):
I'd have expected for my rule not to match in this case and only the Default rule to match.
The text was updated successfully, but these errors were encountered: