weixin_39611722
weixin_39611722
2021-01-08 21:21

[QUESTION] 追踪链调用按照文档配置zipkin,执行请求后,zipkin的界面没有展示任何内容

Before you submit this issue, you has been search all existed issues and search the documentation

  • [] I've been search all existed issues
  • [] I've been read all documentation

Describe your question

Before you submit this issue, you has been search all existed issues and search the documentation

  • [] I've been search all existed issues
  • [] I've been read all documentation

Describe your question

追踪链调用按照文档配置zipkin,执行请求后,zipkin的界面没有展示任何内容 `<?php

declare(strict_types=1); /* * This file is part of Hyperf. * * https://www.hyperf.io * https://doc.hyperf.io * group.io * https://github.com/hyperf/hyperf/blob/master/LICENSE / use Zipkin\Samplers\BinarySampler;

return [ 'default' => env('TRACER_DRIVER', 'zipkin'), 'enable' => [ 'guzzle' => env('TRACER_ENABLE_GUZZLE', true), 'redis' => env('TRACER_ENABLE_REDIS', true), 'db' => env('TRACER_ENABLE_DB', true), 'method' => env('TRACER_ENABLE_METHOD', true), ], 'tracer' => [ 'zipkin' => [ 'driver' => Hyperf\Tracer\Adapter\ZipkinTracerFactory::class, 'app' => [ 'name' => env('APP_NAME', 'bxy'), // Hyperf will detect the system info automatically as the value if ipv4, ipv6, port is null 'ipv4' => '127.0.0.1', 'ipv6' => null, 'port' => 9503, ], 'options' => [ 'endpoint_url' => env('ZIPKIN_ENDPOINT_URL', 'http://tracing-analysis-dc-bj.aliyuncs.com/adapt_hwdd1lvp5e/api/v2/spans'), 'timeout' => env('ZIPKIN_TIMEOUT', 1), ], 'sampler' => BinarySampler::createAsAlwaysSample(), ], 'jaeger' => [ 'driver' => Hyperf\Tracer\Adapter\JaegerTracerFactory::class, 'name' => env('APP_NAME', 'skeleton'), 'options' => [ / * You can uncomment the sampler lines to use custom strategy. * * For more available configurations, * https://github.com/jonahgeorge/jaeger-client-php / // 'sampler' => [ // 'type' => \Jaeger\SAMPLER_TYPE_CONST, // 'param' => true, // ],, 'local_agent' => [ 'reporting_host' => env('JAEGER_REPORTING_HOST', 'localhost'), 'reporting_port' => env('JAEGER_REPORTING_PORT', 5775), ], ], ], ], 'tags' => [ 'http_client' => [ 'http.url' => 'http.url', 'http.method' => 'http.method', 'http.status_code' => 'http.status_code', ], 'redis' => [ 'arguments' => 'arguments', 'result' => 'result', ], 'db' => [ 'db.query' => 'db.query', 'db.statement' => 'db.statement', 'db.query_time' => 'db.query_time', ], ], ];`

中间件也都正确配置了

1592145988108

阿里云控制台应用已经创建,但是里面的数据全是空的

该提问来源于开源项目:hyperf/hyperf

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

  • weixin_39611722 weixin_39611722 4月前

    WX20200615-205300 WX20200615-205309 WX20200615-205449 WX20200615-205522

    点赞 评论 复制链接分享
  • weixin_39724889 weixin_39724889 4月前

    看着没什么问题,但这样的情况我们也是没有办法复现的

    点赞 评论 复制链接分享
  • weixin_39947016 weixin_39947016 4月前

    建议再好好检查一下,组件肯定是可以正常使用的。

    点赞 评论 复制链接分享
  • weixin_39724889 weixin_39724889 4月前

    请提供各个相关配置项的截图

    点赞 评论 复制链接分享

相关推荐