Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 0 additions & 6 deletions analysis-baseline.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1356,12 +1356,6 @@ code = "reference-to-undefined-variable"
message = "Reference created from a previously undefined variable `$matches`."
count = 1

[[issues]]
file = "src/Tracing/Transaction.php"
code = "incompatible-property-type"
message = 'Property `Sentry\Tracing\Transaction::$transaction` has an incompatible type declaration from docblock.'
count = 1

[[issues]]
file = "src/Tracing/Transaction.php"
code = "invalid-return-statement"
Expand Down
7 changes: 1 addition & 6 deletions src/Tracing/Transaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ final class Transaction extends Span
*/
private $name;

/**
* @var Transaction The transaction
*/
protected $transaction;

/**
* @var TransactionMetadata
*/
Expand Down Expand Up @@ -103,7 +98,7 @@ public function getDynamicSamplingContext(): DynamicSamplingContext
return $this->metadata->getDynamicSamplingContext();
}

$samplingContext = DynamicSamplingContext::fromTransaction($this->transaction, $this->hub);
$samplingContext = DynamicSamplingContext::fromTransaction($this, $this->hub);
$this->getMetadata()->setDynamicSamplingContext($samplingContext);

return $samplingContext;
Expand Down
Loading