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

Method fail

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected