Skip to content

TransactionIntegration should always set a transaction #1715

Open
@cleptric

Description

@cleptric

if (isset($hint->extra['transaction']) && \is_string($hint->extra['transaction'])) {
$event->setTransaction($hint->extra['transaction']);
} elseif (isset($_SERVER['PATH_INFO'])) {
$event->setTransaction($_SERVER['PATH_INFO']);
}

We should make sure we always end up writing something into $event->transaction, to offer a better UX in the product. With my local setup, $_SERVER['PATH_INFO'] seems to be not populated, using Apache.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions