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

Method on_start

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected