| 7903 | |
| 7904 | |
| 7905 | class 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 | |
| 7915 | class FailingPropagator(TextMapPropagator): |
no outgoing calls