Skip to content
This repository was archived by the owner on Dec 5, 2025. It is now read-only.

Commit 650d51f

Browse files
committed
feat: Headers string
1 parent 749df87 commit 650d51f

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Middlewares/MeasureRequest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,10 @@ protected function recordHeaders(SpanInterface $span, Request|Response $http): S
124124

125125
$value = static::headerIsSensitive($key) ? ['*****'] : $value;
126126

127+
if (is_array($value)) {
128+
$value = implode(', ', $value);
129+
}
130+
127131
$span->setAttribute($prefix.$key, $value);
128132
}
129133

0 commit comments

Comments
 (0)