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
I know this probably won't get a lot of traction as apistar is pretty much abandoned now, but i've noticed an incompatibility with aws-xray-sdk and your code.
error message:
TypeError: calculate_sampling_decision() got an unexpected keyword argument 'service_name'
defcalculate_sampling_decision(trace_header, recorder, sampling_req):
""" Return 1 or the matched rule name if should sample and 0 if should not. The sampling decision coming from ``trace_header`` always has the highest precedence. If the ``trace_header`` doesn't contain sampling decision then it checks if sampling is enabled or not in the recorder. If not enbaled it returns 1. Otherwise it uses user defined sampling rules to decide. """iftrace_header.sampledisnotNoneandtrace_header.sampled!='?':
returntrace_header.sampledelifnotrecorder.sampling:
return1else:
decision=recorder.sampler.should_trace(sampling_req)
returndecisionifdecisionelse0
The text was updated successfully, but these errors were encountered:
Hey,
I know this probably won't get a lot of traction as apistar is pretty much abandoned now, but i've noticed an incompatibility with aws-xray-sdk and your code.
error message:
call in apistar-aws-xray.AWSXrayEventHook
in aws_xray_sdk.ext.util
The text was updated successfully, but these errors were encountered: