summaryrefslogtreecommitdiff
path: root/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/Reporter/ReporterInterface.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-04-09 20:50:33 +0300
committerAndrew Dolgov <[email protected]>2023-04-09 20:50:33 +0300
commit8f3646a9c93a06f76f6abb31020fdb74b4b1fc59 (patch)
tree4e6c9f39e0623ef70bedfee014f1bd20603f89ad /vendor/jonahgeorge/jaeger-client-php/src/Jaeger/Reporter/ReporterInterface.php
parenta37eab2610a0a2bcb655258781c1c7e925dc94c0 (diff)
exp: jaeger tracing
Diffstat (limited to 'vendor/jonahgeorge/jaeger-client-php/src/Jaeger/Reporter/ReporterInterface.php')
-rw-r--r--vendor/jonahgeorge/jaeger-client-php/src/Jaeger/Reporter/ReporterInterface.php28
1 files changed, 28 insertions, 0 deletions
diff --git a/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/Reporter/ReporterInterface.php b/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/Reporter/ReporterInterface.php
new file mode 100644
index 000000000..fea8a8713
--- /dev/null
+++ b/vendor/jonahgeorge/jaeger-client-php/src/Jaeger/Reporter/ReporterInterface.php
@@ -0,0 +1,28 @@
+<?php
+
+namespace Jaeger\Reporter;
+
+use Jaeger\Span;
+
+/**
+ * Uses to report finished span to something that collects those spans.
+ *
+ * @package Jaeger\Reporter
+ */
+interface ReporterInterface
+{
+ /**
+ * Report finished span.
+ *
+ * @param Span $span
+ * @return void
+ */
+ public function reportSpan(Span $span);
+
+ /**
+ * Release any resources used by the reporter and flushes/sends the data.
+ *
+ * @return void
+ */
+ public function close();
+}