interface TransactionBuilderInterface (View source)

Class to gather optional parameters to start a new transaction

Methods

asCurrent()

New transaction will be set as the current one

timestamp(float $timestamp)

Set start time of the new transaction

begin()

Begins a new transaction.

mixed
capture(Closure $callback)

Begins a new transaction, runs the provided callback as the new transaction and automatically ends the new transaction.

Details

TransactionBuilderInterface asCurrent()

New transaction will be set as the current one

TransactionBuilderInterface timestamp(float $timestamp)

Set start time of the new transaction

Parameters

float $timestamp

Return Value

TransactionBuilderInterface

TransactionBuilderInterface distributedTracingHeaderExtractor(Closure $headerExtractor)

No description

Parameters

Closure $headerExtractor

Return Value

TransactionBuilderInterface

TransactionInterface begin()

Begins a new transaction.

Return Value

TransactionInterface

New transaction

mixed capture(Closure $callback)

Begins a new transaction, runs the provided callback as the new transaction and automatically ends the new transaction.

Parameters

Closure $callback

Return Value

mixed

The return value of $callback