opentelemetry-manager / laravel
Laravel Open Telemetry Manager
1.0.1
2024-03-17 18:16 UTC
Requires
This package is auto-updated.
Last update: 2024-12-17 20:13:15 UTC
README
use OpenTelemetryManager\Supports; $parent = OpenTelemetry::startSpan("parent") $child = OpenTelemetry::startSpan("child") $child->end(); $parent->end(); //for detach active span ( call in end of the execution ) OpenTelemetry::end()
Context Propagation ( sending )
use OpenTelemetryManager\Supports; $outgoing = OpenTelemetry::startSpan('Start remote Request'); $response = Http::withHeaders(OpenTelemetry::outGoingPropagationHeader()) ->get('url'); $outgoing->end(); //for detach active span ( call in end of the execution ) OpenTelemetry::end()
Context Propagation ( Incoming )
use OpenTelemetryManager\Supports; $context = OpenTelemetry::incomingPropagation($request->header()); $span = OpenTelemetry::startSpan('Start second App', $context); $span->end(); //for detach active span ( call in end of the execution ) OpenTelemetry::end()