Skip to content

Commit 67500b2

Browse files
authored
Update Zipkin tracer config
更新zipkin配置文件
1 parent 0a5dcad commit 67500b2

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

installer/resources/tracer/opentracing.php

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,24 +13,28 @@
1313
use Zipkin\Samplers\BinarySampler;
1414

1515
return [
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
];

0 commit comments

Comments
 (0)