Skip to content

Commit 35a50af

Browse files
committed
Update interface
1 parent 8cccc21 commit 35a50af

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

src/Tracing/TracerInterface.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
namespace Tracing;
44

5+
use OpenTracing\Span;
56
use OpenTracing\SpanContext;
67

78
interface TracerInterface {
@@ -77,6 +78,8 @@ public function inject(SpanContext $spanContext, $format, &$carrier);
7778
*/
7879
public function extract($format, $carrier);
7980

81+
public function checkThenFlush(bool $limitTagSize, bool $limitLogSize);
82+
8083
/**
8184
* Allow tracer to send span data to be instrumented.
8285
*
@@ -98,4 +101,8 @@ public function resume();
98101

99102
public function getTraceId(SpanContext $spanContext);
100103

104+
public function getSpanDuration(Span $span);
105+
106+
public function getAllSpanDurations();
107+
101108
}

0 commit comments

Comments
 (0)