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

Method on_end

tests/test_open_telemetry.py:7902–7904  ·  view source on GitHub ↗
(self, span: ReadableSpan)

Source from the content-addressed store, hash-verified

7900
7901 @override
7902 def on_end(self, span: ReadableSpan) -> None:
7903 if self.failure == "on_end":
7904 raise RuntimeError("cannot end a span")
7905
7906
7907class FailingSampler(sampling.Sampler):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected