Skip to content

Commit

Permalink
Applied make style
Browse files Browse the repository at this point in the history
  • Loading branch information
SergeyKleyman committed Mar 5, 2025
1 parent fa86290 commit 1c9b25f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/Unit/Contrib/Otlp/SpanConverterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace OpenTelemetry\Tests\Unit\Contrib\Otlp;

use Opentelemetry\Proto\Trace\V1\SpanFlags;
use function bin2hex;
use OpenTelemetry\API\Trace\SpanContext;
use OpenTelemetry\API\Trace\SpanKind;
Expand All @@ -19,6 +18,7 @@
use Opentelemetry\Proto\Trace\V1\ScopeSpans;
use Opentelemetry\Proto\Trace\V1\Span as ProtoSpan;
use Opentelemetry\Proto\Trace\V1\Span\SpanKind as ProtoSpanKind;
use Opentelemetry\Proto\Trace\V1\SpanFlags;
use OpenTelemetry\SDK\Common\Attribute\Attributes;
use OpenTelemetry\SDK\Common\Instrumentation\InstrumentationScope;
use OpenTelemetry\SDK\Resource\ResourceInfo;
Expand Down Expand Up @@ -74,11 +74,13 @@ public function test_span_context_is_remote_flags(): void
if (!$isFlagSet($flags, V1\SpanFlags::SPAN_FLAGS_CONTEXT_HAS_IS_REMOTE_MASK)) {
return null;
}

return $isFlagSet($flags, V1\SpanFlags::SPAN_FLAGS_CONTEXT_IS_REMOTE_MASK);
};

$convertSpanData = static function (SpanData $spanData): ProtoSpan {
$converter = new SpanConverter();

/** @psalm-suppress InvalidArgument */
return $converter->convert([$spanData])->getResourceSpans()[0]->getScopeSpans()[0]->getSpans()[0];
};
Expand Down

0 comments on commit 1c9b25f

Please sign in to comment.