From 26f1ba79901f783785b4757324bc9a8cc027bd52 Mon Sep 17 00:00:00 2001 From: loks0n <22452787+loks0n@users.noreply.github.com> Date: Tue, 17 Feb 2026 10:37:45 +0000 Subject: [PATCH] Update utopia-php/span to 1.1.5 and set span level to warn on FORMERR responses Co-Authored-By: Claude Opus 4.6 --- composer.lock | 12 ++++++------ src/DNS/Server.php | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/composer.lock b/composer.lock index 74f4699..f49f7be 100644 --- a/composer.lock +++ b/composer.lock @@ -2036,16 +2036,16 @@ }, { "name": "utopia-php/span", - "version": "1.1.4", + "version": "1.1.5", "source": { "type": "git", "url": "https://github.com/utopia-php/span.git", - "reference": "49d04aa588a2cdbbc9381ee7a1c129469e0f905c" + "reference": "028406940ca92bdc88099f0b1a123a3b2cbdd4e5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/utopia-php/span/zipball/49d04aa588a2cdbbc9381ee7a1c129469e0f905c", - "reference": "49d04aa588a2cdbbc9381ee7a1c129469e0f905c", + "url": "https://api.github.com/repos/utopia-php/span/zipball/028406940ca92bdc88099f0b1a123a3b2cbdd4e5", + "reference": "028406940ca92bdc88099f0b1a123a3b2cbdd4e5", "shasum": "" }, "require": { @@ -2074,9 +2074,9 @@ "description": "Simple span tracing library for PHP with coroutine support", "support": { "issues": "https://github.com/utopia-php/span/issues", - "source": "https://github.com/utopia-php/span/tree/1.1.4" + "source": "https://github.com/utopia-php/span/tree/1.1.5" }, - "time": "2026-02-13T10:58:12+00:00" + "time": "2026-02-13T18:00:11+00:00" }, { "name": "utopia-php/telemetry", diff --git a/src/DNS/Server.php b/src/DNS/Server.php index 85b0495..5345baa 100644 --- a/src/DNS/Server.php +++ b/src/DNS/Server.php @@ -179,6 +179,7 @@ protected function onPacket(string $buffer, string $ip, int $port, ?int $maxResp } catch (PartialDecodingException $e) { $this->handleError($e); + $span->set('level', 'warn'); $response = Message::response( $e->getHeader(), Message::RCODE_FORMERR, @@ -207,6 +208,7 @@ protected function onPacket(string $buffer, string $ip, int $port, ?int $maxResp $question = $query->questions[0] ?? null; if ($question === null) { + $span->set('level', 'warn'); $response = Message::response( $query->header, Message::RCODE_FORMERR,