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

Method on_end

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected