File manager - Edit - /var/www/payraty/helpdesk/vendor/sentry/sentry-laravel/src/Sentry/Laravel/Features/Concerns/WorksWithSpans.php
Back
<?php namespace Sentry\Laravel\Features\Concerns; use Sentry\SentrySdk; use Sentry\Tracing\Span; trait WorksWithSpans { protected function getParentSpanIfSampled(): ?Span { $parentSpan = SentrySdk::getCurrentHub()->getSpan(); // If the span is not available or not sampled we don't need to do anything if ($parentSpan === null || !$parentSpan->getSampled()) { return null; } return $parentSpan; } /** @param callable(Span $parentSpan): void $callback */ protected function withParentSpanIfSampled(callable $callback): void { $parentSpan = $this->getParentSpanIfSampled(); if ($parentSpan === null) { return; } $callback($parentSpan); } }
| ver. 1.4 |
Github
|
.
| PHP 8.3.30 | Generation time: 0 |
proxy
|
phpinfo
|
Settings