Update wp-content/plugins/simple-jaeger/simple-jaeger.php
This commit is contained in:
parent
cb3502b158
commit
1336e85242
|
@ -3,7 +3,7 @@
|
|||
Plugin Name: SimpleJaeger
|
||||
Description: A plugin to integrate Jaeger tracing with WordPress
|
||||
Version: 1.0
|
||||
Author: colin
|
||||
Author: Colin
|
||||
*/
|
||||
|
||||
require __DIR__ . '/vendor/autoload.php';
|
||||
|
@ -12,7 +12,7 @@ use OpenTelemetry\Sdk\Trace\TracerProvider;
|
|||
use OpenTelemetry\Sdk\Trace\Exporter\JaegerExporter;
|
||||
use OpenTelemetry\Sdk\Trace\SpanProcessor\SimpleSpanProcessor;
|
||||
|
||||
function init_simple_jaeger_tracing() {
|
||||
function init_simple_jaeger() {
|
||||
$jaegerExporter = new JaegerExporter(
|
||||
'JaegerExporter',
|
||||
'http://localhost:14268/api/traces'
|
||||
|
@ -34,4 +34,4 @@ function init_simple_jaeger_tracing() {
|
|||
$tracerProvider->shutdown();
|
||||
}
|
||||
|
||||
add_action('init', 'init_simple_jaeger_tracing');
|
||||
add_action('init', 'init_simple_jaeger');
|
||||
|
|
Loading…
Reference in New Issue