File tree Expand file tree Collapse file tree 1 file changed +16
-12
lines changed
installer/resources/tracer Expand file tree Collapse file tree 1 file changed +16
-12
lines changed Original file line number Diff line number Diff line change 1313use Zipkin \Samplers \BinarySampler ;
1414
1515return [
16+ 'default ' => 'zikpin ' ,
1617 'enable ' => [
1718 'guzzle ' => false ,
1819 'redis ' => false ,
1920 'db ' => false ,
2021 'method ' => false ,
2122 ],
22- 'zipkin ' => [
23- 'app ' => [
24- 'name ' => env ('APP_NAME ' , 'skeleton ' ),
25- // Hyperf will detect the system info automatically as the value if ipv4, ipv6, port is null
26- 'ipv4 ' => '127.0.0.1 ' ,
27- 'ipv6 ' => null ,
28- 'port ' => 9501 ,
23+ 'tracer ' => [
24+ 'zipkin ' => [
25+ 'app ' => [
26+ 'name ' => env ('APP_NAME ' , 'skeleton ' ),
27+ // Hyperf will detect the system info automatically as the value if ipv4, ipv6, port is null
28+ 'ipv4 ' => '127.0.0.1 ' ,
29+ 'ipv6 ' => null ,
30+ 'port ' => 9501 ,
31+ ],
32+ 'options ' => [
33+ 'endpoint_url ' => env ('ZIPKIN_ENDPOINT_URL ' , 'http://localhost:9411/api/v2/spans ' ),
34+ 'timeout ' => env ('ZIPKIN_TIMEOUT ' , 1 ),
35+ ],
36+ 'sampler ' => BinarySampler::createAsAlwaysSample (),
37+ 'driver ' => Hyperf \Tracer \Adapter \ZipkinTracerFactory::class,
2938 ],
30- 'options ' => [
31- 'endpoint_url ' => env ('ZIPKIN_ENDPOINT_URL ' , 'http://localhost:9411/api/v2/spans ' ),
32- 'timeout ' => env ('ZIPKIN_TIMEOUT ' , 1 ),
33- ],
34- 'sampler ' => BinarySampler::createAsAlwaysSample (),
3539 ],
3640];
You can’t perform that action at this time.
0 commit comments