diff options
author | Andrew Dolgov <[email protected]> | 2023-10-20 21:27:10 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2023-10-20 21:27:10 +0300 |
commit | 7092a1e85ddfd8e705cbc8ef752c26df944a237a (patch) | |
tree | 8be12eaf19f1a1a9da4f4d5e13a59edd632dd2b5 /classes/tracer.php | |
parent | 62ca093b75329f5d11d67b425ba0efd22649a3c8 (diff) |
OPENTELEMETRY_HOST -> OPENTELEMETRY_ENDPOINT
Diffstat (limited to 'classes/tracer.php')
-rw-r--r-- | classes/tracer.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/classes/tracer.php b/classes/tracer.php index d788cfdba..4fee8769a 100644 --- a/classes/tracer.php +++ b/classes/tracer.php @@ -16,10 +16,10 @@ class Tracer { private static $tracer; public function __construct() { - $opentelemetry_host = Config::get(Config::OPENTELEMETRY_HOST); + $OPENTELEMETRY_ENDPOINT = Config::get(Config::OPENTELEMETRY_ENDPOINT); - if ($opentelemetry_host) { - $transport = (new OtlpHttpTransportFactory())->create("http://$opentelemetry_host/v1/traces", 'application/x-protobuf'); + if ($OPENTELEMETRY_ENDPOINT) { + $transport = (new OtlpHttpTransportFactory())->create($OPENTELEMETRY_ENDPOINT, 'application/x-protobuf'); $exporter = new SpanExporter($transport); } else { $exporter = new InMemoryExporter(); |