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

Class FailingSampler

tests/test_open_telemetry.py:7905–7912  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7903
7904
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:
7912 return "failing"
7913
7914
7915class FailingPropagator(TextMapPropagator):

Callers 1

failing_tracingFunction · 0.85

Calls

no outgoing calls

Tested by 1

failing_tracingFunction · 0.68