summaryrefslogtreecommitdiff
path: root/vendor/open-telemetry/api/Instrumentation/InstrumentationInterface.php
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/open-telemetry/api/Instrumentation/InstrumentationInterface.php')
-rw-r--r--vendor/open-telemetry/api/Instrumentation/InstrumentationInterface.php43
1 files changed, 43 insertions, 0 deletions
diff --git a/vendor/open-telemetry/api/Instrumentation/InstrumentationInterface.php b/vendor/open-telemetry/api/Instrumentation/InstrumentationInterface.php
new file mode 100644
index 000000000..d67bc8d6d
--- /dev/null
+++ b/vendor/open-telemetry/api/Instrumentation/InstrumentationInterface.php
@@ -0,0 +1,43 @@
+<?php
+
+declare(strict_types=1);
+
+namespace OpenTelemetry\API\Instrumentation;
+
+use OpenTelemetry\API\Metrics\MeterInterface;
+use OpenTelemetry\API\Metrics\MeterProviderInterface;
+use OpenTelemetry\API\Trace\TracerInterface;
+use OpenTelemetry\API\Trace\TracerProviderInterface;
+use OpenTelemetry\Context\Propagation\TextMapPropagatorInterface;
+use Psr\Log\LoggerInterface;
+
+interface InstrumentationInterface
+{
+ public function getName(): string;
+
+ public function getVersion(): ?string;
+
+ public function getSchemaUrl(): ?string;
+
+ public function init(): bool;
+
+ public function activate(): bool;
+
+ public function setPropagator(TextMapPropagatorInterface $propagator): void;
+
+ public function getPropagator(): TextMapPropagatorInterface;
+
+ public function setTracerProvider(TracerProviderInterface $tracerProvider): void;
+
+ public function getTracerProvider(): TracerProviderInterface;
+
+ public function getTracer(): TracerInterface;
+
+ public function setMeterProvider(MeterProviderInterface $meterProvider): void;
+
+ public function getMeter(): MeterInterface;
+
+ public function setLogger(LoggerInterface $logger): void;
+
+ public function getLogger(): LoggerInterface;
+}