Closed sebastianhaeni closed 8 months ago
Thanks for the report
For clarification, the URISyntaxException
is logged by Http1xServerRequest#absoluteURI
, which returns a null
value in this case. Tags data is still extracted and, for OpenTelemetry, the absolute URL is not a required attribute.
An issue related to the absoluteUri
method has already been filed to Vert.x core: https://github.com/eclipse-vertx/vert.x/issues/2797
Before it is fixed and to avoid polluting logs, you can change the log level of io.vertx.core.http.impl.Http1xServerRequest
.
Version
io.vertx:vertx-opentelemetry:4.5.3
Context
When a request is made to the service with an unusual URL, an exception is thrown originating by tracing, because the URL cannot be parsed and added as a tag to the span.
Tag extraction should not throw exceptions based on non-standard URLs.
Do you have a reproducer?
Example URL:
/wp-admin/admin-post.php?swp_debug=load_options&swp_url=<pre>system('cat
Steps to reproduce
HttpUtils.value(...)
I assume is okay if it throws. But the tag extraction should not throw. I.e. it needs to use another mechanism thanHttpUtils
or catch the exception and use a fallback value.