Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/anthropics/anthropic-sdk-python
/ attributes
Function
attributes
tests/lib/tools/test_open_telemetry.py:143–144 ·
view source on GitHub ↗
(span: ReadableSpan)
Source
from the content-addressed store, hash-verified
141
142
143
def
attributes(span: ReadableSpan) -> dict[str, Any]:
144
return
dict(span.attributes or {})
145
146
147
def
span_id(span: ReadableSpan | Span) -> int:
Callers
15
tool_spans
Function · 0.70
test_tool_runner_and_tool_spans
Method · 0.70
test_tool_error
Method · 0.70
test_tool_result_content
Method · 0.70
test_tool_result_without_content_has_an_empty_list
Method · 0.70
test_async_tool_result_without_content_has_an_empty_list
Method · 0.70
test_tool_result_content_loses_its_last_blocks_over_the_content_limit
Method · 0.70
test_tool_result_content_is_within_the_clients_max_content_bytes
Method · 0.70
test_size_bound_cases_of_a_tool_span
Method · 0.70
test_tool_arguments_alone_over_the_bound_are_removed_whole
Method · 0.70
test_async_tool_arguments_alone_over_the_bound_are_removed_whole
Method · 0.70
test_tool_content_that_json_cannot_hold_is_not_recorded
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected