From 83a9f3f00acefc0581b99e7790232b5ecd342207 Mon Sep 17 00:00:00 2001 From: Maxim Smakouz Date: Thu, 13 Apr 2023 17:14:11 +0300 Subject: [PATCH] Update config version, add otel --- src/Configuration/Section/Otel.php | 31 +++++++++++++++++++++++++++ src/Configuration/Section/Version.php | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 src/Configuration/Section/Otel.php diff --git a/src/Configuration/Section/Otel.php b/src/Configuration/Section/Otel.php new file mode 100644 index 0000000..5410444 --- /dev/null +++ b/src/Configuration/Section/Otel.php @@ -0,0 +1,31 @@ + [ + 'insecure' => false, + 'compress' => false, + 'client' => 'http', + 'exporter' => 'otlp', + 'custom_url' => '', + 'service_name' => 'RoadRunner', + 'service_version' => '1.0.0', + 'endpoint' => '127.0.0.1:4318' + ] + ]; + } + + public static function getShortName(): string + { + return self::NAME; + } +} diff --git a/src/Configuration/Section/Version.php b/src/Configuration/Section/Version.php index 5a8f309..4ac72ab 100644 --- a/src/Configuration/Section/Version.php +++ b/src/Configuration/Section/Version.php @@ -7,7 +7,7 @@ final class Version extends AbstractSection { private const NAME = 'version'; - private const CONFIG_VERSION = '2.7'; + private const CONFIG_VERSION = '3'; public function render(): array {