transaction property

String? transaction

The name of the transaction which generated this event, for example, the route name: "/users/<username>/".

Implementation

String? get transaction {
  return ((span is SentryTracer) ? (span as SentryTracer?)?.name : null) ??
      _transaction;
}
void transaction=(String? transaction)

Implementation

set transaction(String? transaction) {
  _transaction = transaction;

  if (_transaction != null && span != null) {
    final currentTransaction =
        (span is SentryTracer) ? (span as SentryTracer?) : null;
    currentTransaction?.name = _transaction!;
  }
}