Skip to content

Commit

Permalink
Merge pull request #113 from minbaby/hotfix/tracingbuilder
Browse files Browse the repository at this point in the history
fix if endpoint is null, than service name is invalid
  • Loading branch information
jcchavezs authored Jul 3, 2019
2 parents 500a27c + d3aeb6a commit 88ab0e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Zipkin/TracingBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function build()
if ($localEndpoint === null) {
$localEndpoint = Endpoint::createFromGlobals();
if ($this->localServiceName !== null) {
$localEndpoint->withServiceName($this->localServiceName);
$localEndpoint = $localEndpoint->withServiceName($this->localServiceName);
}
}

Expand Down

0 comments on commit 88ab0e8

Please sign in to comment.