We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e4584c commit c60f32aCopy full SHA for c60f32a
1 file changed
ext/opentelemetry-ext-wsgi/src/opentelemetry/ext/wsgi/__init__.py
@@ -100,9 +100,7 @@ def collect_request_attributes(environ):
100
101
host_port = environ.get("SERVER_PORT")
102
if host_port is not None:
103
- if isinstance(host_port, str):
104
- host_port = int(host_port)
105
- result.update({"host.port": host_port})
+ result.update({"host.port": int(host_port)})
106
107
setifnotnone(result, "http.host", environ.get("HTTP_HOST"))
108
target = environ.get("RAW_URI")
0 commit comments