From 8807ecdeed325e1441affd8d9db75fdbd7a930b3 Mon Sep 17 00:00:00 2001 From: titrxw <1120309488@qq.com> Date: Sat, 5 Jun 2021 23:51:01 +0800 Subject: [PATCH] =?UTF-8?q?style:=20=E4=BF=AE=E6=94=B9zipkin=20endpoint?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Handler/ZipkinHandler.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/Handler/ZipkinHandler.php b/src/Handler/ZipkinHandler.php index 2afba1e..f38d73c 100644 --- a/src/Handler/ZipkinHandler.php +++ b/src/Handler/ZipkinHandler.php @@ -22,10 +22,7 @@ class ZipkinHandler implements HandlerInterface { public function make($name, array $options = []): Tracer { $endpoint = Endpoint::create( - $name, - $options['ipv4'] ?? '127.0.0.1', - $options['ipv6'] ?? null, - $options['port'] ?? '9411' + $name ); $reporter = $options['reporter'] ?? new Http(['endpoint_url' => $options['endpoint'] ?? Http::DEFAULT_OPTIONS['endpoint_url']]); $sampler = $options['sampler'] ?? BinarySampler::createAsAlwaysSample();