Skip to content

Commit

Permalink
del setTags
Browse files Browse the repository at this point in the history
  • Loading branch information
jukylin committed Jul 13, 2019
1 parent 92167be commit 4fd206e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/Jaeger/Jaeger.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,11 @@ public function startSpan($operationName, $options = []){
}

$span = new Span($operationName, $newSpan, $options->getReferences());
$span->setTags($options->getTags());

if(!empty($options->getTags())) {
foreach ($options->getTags() as $k => $tag) {
$span->setTag($k, $tag);
}
}
if($newSpan->isSampled() == 1) {
$this->spans[] = $span;
}
Expand Down

0 comments on commit 4fd206e

Please sign in to comment.