It should return the transaction name, as passed to StartTransaction or SetName.
Additional context
We'd like to be able to easily include the transaction name in the attributes for RecordCustomEvent. However, there doesn't seem to be a way to do this without keeping track of the name ourselves.
Alternatively, it would much nicer if there were a way to do RecordCustomEvent within a transaction.
Summary
Add a
Name() string
method toTransaction
.Desired Behavior
It should return the transaction name, as passed to
StartTransaction
orSetName
.Additional context
We'd like to be able to easily include the transaction name in the attributes for
RecordCustomEvent
. However, there doesn't seem to be a way to do this without keeping track of the name ourselves.Alternatively, it would much nicer if there were a way to do
RecordCustomEvent
within a transaction.