File tree Expand file tree Collapse file tree 1 file changed +7
-22
lines changed Expand file tree Collapse file tree 1 file changed +7
-22
lines changed Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments