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

Method start_span

tests/test_tracing.py:58–61  ·  view source on GitHub ↗
(self, name: str, *args: Any, **kwargs: Any)

Source from the content-addressed store, hash-verified

56
57 @override
58 def start_span(self, name: str, *args: Any, **kwargs: Any) -> Span:
59 span = RecordingSpan(kwargs.get("attributes"), sampled=self.provider.sampled)
60 self.provider.spans.append(span)
61 return span
62
63 @override
64 def start_as_current_span(self, name: str, *args: Any, **kwargs: Any) -> Any:

Callers 6

start_api_call_spanFunction · 0.80
start_tool_runner_spanFunction · 0.80
tool_use_spanFunction · 0.80
startMethod · 0.80
test_size_bound_casesMethod · 0.80

Calls 3

RecordingSpanClass · 0.85
getMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected