File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed
Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -674,6 +674,7 @@ class OP:
674674 HTTP_CLIENT = "http.client"
675675 HTTP_CLIENT_STREAM = "http.client.stream"
676676 HTTP_SERVER = "http.server"
677+ HTTP = "http"
677678 MESSAGE = "message"
678679 MIDDLEWARE_DJANGO = "middleware.django"
679680 MIDDLEWARE_LITESTAR = "middleware.litestar"
Original file line number Diff line number Diff line change @@ -160,12 +160,12 @@ def infer_op(span: ReadableSpan) -> Optional[str]:
160160 return None
161161
162162 if SpanAttributes .HTTP_METHOD in span .attributes :
163- op = "http"
164163 if span .kind == SpanKind .SERVER :
165- op += ".server"
164+ return OP . HTTP_SERVER
166165 elif span .kind == SpanKind .CLIENT :
167- op += ".client"
168- return op
166+ return OP .HTTP_CLIENT
167+ else :
168+ return OP .HTTP
169169 elif SpanAttributes .DB_SYSTEM in span .attributes :
170170 return OP .DB
171171 elif SpanAttributes .RPC_SERVICE in span .attributes :
You can’t perform that action at this time.
0 commit comments