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

Method on_start

tests/test_open_telemetry.py:7895–7897  ·  view source on GitHub ↗
(self, span: SdkSpan, parent_context: context.Context | None = None)

Source from the content-addressed store, hash-verified

7893
7894 @override
7895 def on_start(self, span: SdkSpan, parent_context: context.Context | None = None) -> None:
7896 if self.failure == "on_start":
7897 raise RuntimeError("cannot start a span")
7898
7899 @override
7900 def on_end(self, span: ReadableSpan) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected