HttpSpanMixin Class
Can be used to get HTTP span attributes settings for free.
- Inheritance
-
builtins.objectHttpSpanMixin
Constructor
HttpSpanMixin()
Methods
| set_http_attributes |
Add correct attributes for a http client span. |
set_http_attributes
Add correct attributes for a http client span.
set_http_attributes(request: HttpRequest, response: Optional[HttpResponseType] = None) -> None
Parameters
- response
- HttpResponse or AsyncHttpResponse
default value: None
The response received by the server. Is None if no response received.
Feedback
Submit and view feedback for