Skip to content

Commit b0bd5f4

Browse files
committed
Expose some private variables
1 parent bffa30e commit b0bd5f4

2 files changed

Lines changed: 10 additions & 0 deletions

File tree

src/Client/ThriftClient.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ public function add(SpanInterface $span): ClientInterface
3131
return $this;
3232
}
3333

34+
public function getSpans() : array
35+
{
36+
return $this->spans;
37+
}
38+
3439
public function flush(): ClientInterface
3540
{
3641
switch (PHP_SAPI) {

src/Tracer/Tracer.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,11 @@ public function getContext(SpanContext $userContext = null): ?SpanContext
7171
return null;
7272
}
7373

74+
public function getClient(): ClientInterface
75+
{
76+
return $this->client;
77+
}
78+
7479
public function debug(string $operationName, array $tags = []): SpanInterface
7580
{
7681
$span = $this->factory->parent($this, $operationName, str_shuffle('01234567890abcdef'), $tags);

0 commit comments

Comments
 (0)