The attributes of `span` that hold the ID of an API object.
(span: ReadableSpan)
| 6948 | |
| 6949 | |
| 6950 | def resource_ids(span: ReadableSpan) -> dict[str, Any]: |
| 6951 | """The attributes of `span` that hold the ID of an API object.""" |
| 6952 | common = ("anthropic.request.id", "anthropic.organization.id", "anthropic.workspace.id") |
| 6953 | return {key: value for key, value in attributes(span).items() if key.endswith(".id") and key not in common} |
| 6954 | |
| 6955 | |
| 6956 | def assert_http_attributes(span: ReadableSpan, method: str, path: str) -> None: |
no test coverage detected