diff --git a/src/Adapter/JaegerTracerFactory.php b/src/Adapter/JaegerTracerFactory.php index dfe7890..4ab3178 100644 --- a/src/Adapter/JaegerTracerFactory.php +++ b/src/Adapter/JaegerTracerFactory.php @@ -46,21 +46,15 @@ public function make(string $name): Tracer private function parseConfig(): array { - $options = $this->getConfig('options', [ - 'sampler' => [ - 'type' => SAMPLER_TYPE_CONST, - 'param' => true, - ], - 'logging' => false - ]); - - if (isset($options['tags'])) { - $options['tags'] = $this->sanitizeTags($options['tags']); - } - return [ $this->getConfig('name', 'skeleton'), - $options + $this->getConfig('options', [ + 'sampler' => [ + 'type' => SAMPLER_TYPE_CONST, + 'param' => true, + ], + 'logging' => false, + ]), ]; } @@ -73,13 +67,4 @@ private function getPrefix(): string { return rtrim($this->prefix . $this->name, '.') . '.'; } - - private function sanitizeTags(array $tags = []): array - { - $tagsSanitized = []; - foreach ($tags as $key => $value) { - $tagsSanitized[$key] = (is_array($value)) ? $value[0] : $value; - } - return $tagsSanitized; - } }