MCPcopy Create free account
hub / github.com/anthropics/anthropic-sdk-python / should_sample

Method should_sample

tests/test_open_telemetry.py:7907–7908  ·  view source on GitHub ↗
(self, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

7905class FailingSampler(sampling.Sampler):
7906 @override
7907 def should_sample(self, *args: Any, **kwargs: Any) -> sampling.SamplingResult:
7908 raise RuntimeError("cannot sample a span")
7909
7910 @override
7911 def get_description(self) -> str:

Callers 1

should_sampleMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected