Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
attributes casting to array
Browse files Browse the repository at this point in the history
  • Loading branch information
nekufa committed Dec 8, 2020
1 parent 8d835c5 commit 9a3b313
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Exporter/BasisExporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public function restoreSpan(array $source): Span
$span = (new Span($name ?: 'tracer', $context, $parent));

if ($attributes) {
if (is_object($attributes)) {
$attributes = get_object_vars($attributes);
}
$span->setAttributes($attributes);
}

Expand Down

0 comments on commit 9a3b313

Please sign in to comment.