Skip to content

Commit 8e34536

Browse files
authored
Revert "ensuring that options tags will not send array that will break the span" (#15)
Revert "ensuring that options tags will not send array that will break the sp…" This reverts commit 71c3ddd.
1 parent 71c3ddd commit 8e34536

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

src/Adapter/JaegerTracerFactory.php

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -46,21 +46,15 @@ public function make(string $name): Tracer
4646

4747
private function parseConfig(): array
4848
{
49-
$options = $this->getConfig('options', [
50-
'sampler' => [
51-
'type' => SAMPLER_TYPE_CONST,
52-
'param' => true,
53-
],
54-
'logging' => false
55-
]);
56-
57-
if (isset($options['tags'])) {
58-
$options['tags'] = $this->sanitizeTags($options['tags']);
59-
}
60-
6149
return [
6250
$this->getConfig('name', 'skeleton'),
63-
$options
51+
$this->getConfig('options', [
52+
'sampler' => [
53+
'type' => SAMPLER_TYPE_CONST,
54+
'param' => true,
55+
],
56+
'logging' => false,
57+
]),
6458
];
6559
}
6660

@@ -73,13 +67,4 @@ private function getPrefix(): string
7367
{
7468
return rtrim($this->prefix . $this->name, '.') . '.';
7569
}
76-
77-
private function sanitizeTags(array $tags = []): array
78-
{
79-
$tagsSanitized = [];
80-
foreach ($tags as $key => $value) {
81-
$tagsSanitized[$key] = (is_array($value)) ? $value[0] : $value;
82-
}
83-
return $tagsSanitized;
84-
}
8570
}

0 commit comments

Comments
 (0)