Skip to content

Commit

Permalink
suppress phpstan warning for spanBuilder()
Browse files Browse the repository at this point in the history
  • Loading branch information
carolabadeer committed Sep 8, 2022
1 parent edb53c7 commit d82f853
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Instrumentation/AwsSdk/AwsSdkInstrumentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public function activate(): bool

$carrier = [];
/** @phan-suppress-next-line PhanTypeMismatchArgument */
$this->span = $tracer->spanBuilder($this->clientName)->setSpanKind(AwsSdkInstrumentation::SPAN_KIND)->startSpan();
$this->span = $tracer->spanBuilder($this->clientName)->setSpanKind(AwsSdkInstrumentation::SPAN_KIND)->startSpan(); //@phpstan-ignore-line
$this->scope = $this->span->activate();

$propagator->inject($carrier);
Expand Down

0 comments on commit d82f853

Please sign in to comment.