Skip to content

Commit c46a13c

Browse files
loks0nclaude
andcommitted
Update utopia-php/span to 1.1.5 and set span level to warn on FORMERR responses
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 98c7052 commit c46a13c

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

composer.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/DNS/Server.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,7 @@ protected function onPacket(string $buffer, string $ip, int $port, ?int $maxResp
179179
} catch (PartialDecodingException $e) {
180180
$this->handleError($e);
181181

182+
$span->set('level', 'warn');
182183
$response = Message::response(
183184
$e->getHeader(),
184185
Message::RCODE_FORMERR,
@@ -207,6 +208,7 @@ protected function onPacket(string $buffer, string $ip, int $port, ?int $maxResp
207208

208209
$question = $query->questions[0] ?? null;
209210
if ($question === null) {
211+
$span->set('level', 'warn');
210212
$response = Message::response(
211213
$query->header,
212214
Message::RCODE_FORMERR,

0 commit comments

Comments
 (0)