Skip to content

Commit

Permalink
Adding new wasSuccessful optional param to TransactionObservabilityMa…
Browse files Browse the repository at this point in the history
…nager
  • Loading branch information
CarlosGamero committed Aug 29, 2024
1 parent 02d9272 commit 870dfbc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/observability/observabilityTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export type TransactionObservabilityManager = {
/**
* Ends the transaction
* @param uniqueTransactionKey - used for identifying specific ongoing transaction. Must be reasonably unique to reduce possibility of collisions
* @param wasSuccessful - indicates if the transaction was successful or not
*/
stop: (uniqueTransactionKey: string) => unknown
stop: (uniqueTransactionKey: string, wasSuccessful?: boolean) => unknown
}

0 comments on commit 870dfbc

Please sign in to comment.