When using the opentelemetry integration of spiral, every request causes a log
2024-08-26T08:25:11.578197407Z {"level":"info","ts":1724660711578073811,"logger":"server","msg":"OpenTelemetry: [warning] attribute with non-primitive or non-homogeneous array of primitives dropped: http.url in /var/www/vendor/open-telemetry/sdk/Common/Attribute/AttributesBuilder.php(90)\n"}
How To Reproduce
Any spiral setup with OpenTelemetryBootloader::class in the bootloaders.
Additional Info
Q
A
Framework Version
3.13.0
PHP version
8.2.22
Operating system
Linux
As far as I can tell, this is because in spiral/framework/src/Http/src/Http.php, the attribute http.url is set to $request->getUri() (a UriInterface), possibly under the assumption that opentelemetry-php will convert this to a string.
Description
When using the opentelemetry integration of spiral, every request causes a log
How To Reproduce
Any spiral setup with
OpenTelemetryBootloader::class
in the bootloaders.Additional Info
As far as I can tell, this is because in
spiral/framework/src/Http/src/Http.php
, the attributehttp.url
is set to$request->getUri()
(aUriInterface
), possibly under the assumption that opentelemetry-php will convert this to a string.