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

Method fail

tests/test_open_telemetry.py:8020–8021  ·  view source on GitHub ↗
(*_args: object, **_kwargs: object)

Source from the content-addressed store, hash-verified

8018 route = respx_mock.post("/v1/messages").mock(return_value=httpx2.Response(200, json=MESSAGE))
8019
8020 def fail(*_args: object, **_kwargs: object) -> None:
8021 raise RuntimeError("cannot record")
8022
8023 monkeypatch.setattr("anthropic._tracing.set_url_attributes", fail)
8024

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected