Update wp-content/plugins/simple-jaeger/simple-jaeger.php

This commit is contained in:
colin 2024-07-03 18:11:02 +00:00
parent cb3502b158
commit 1336e85242
1 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
Plugin Name: SimpleJaeger Plugin Name: SimpleJaeger
Description: A plugin to integrate Jaeger tracing with WordPress Description: A plugin to integrate Jaeger tracing with WordPress
Version: 1.0 Version: 1.0
Author: colin Author: Colin
*/ */
require __DIR__ . '/vendor/autoload.php'; require __DIR__ . '/vendor/autoload.php';
@ -12,7 +12,7 @@ use OpenTelemetry\Sdk\Trace\TracerProvider;
use OpenTelemetry\Sdk\Trace\Exporter\JaegerExporter; use OpenTelemetry\Sdk\Trace\Exporter\JaegerExporter;
use OpenTelemetry\Sdk\Trace\SpanProcessor\SimpleSpanProcessor; use OpenTelemetry\Sdk\Trace\SpanProcessor\SimpleSpanProcessor;
function init_simple_jaeger_tracing() { function init_simple_jaeger() {
$jaegerExporter = new JaegerExporter( $jaegerExporter = new JaegerExporter(
'JaegerExporter', 'JaegerExporter',
'http://localhost:14268/api/traces' 'http://localhost:14268/api/traces'
@ -34,4 +34,4 @@ function init_simple_jaeger_tracing() {
$tracerProvider->shutdown(); $tracerProvider->shutdown();
} }
add_action('init', 'init_simple_jaeger_tracing'); add_action('init', 'init_simple_jaeger');