Skip to content

Commit

Permalink
style: 修改zipkin endpoint初始化
Browse files Browse the repository at this point in the history
  • Loading branch information
titrxw committed Jun 5, 2021
1 parent c0e84da commit 8807ecd
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/Handler/ZipkinHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 8807ecd

Please sign in to comment.