Skip to content

ITransactionTracer should implement IDisposable #4321

@tjmccurdy-arhaus

Description

@tjmccurdy-arhaus

Problem Statement

Transaction scopes should be easier to manage in code by having the ITransactionTracer implement IDisposable.

Solution Brainstorm

**using** var tran = SentrySdk.StartTransaction("Startup", "Init");
/* Do something */
/* Once the code goes out of scope, the transaction should "complete" automatically because of the "Dispose" method getting called explicitly, or implicitly. */

Product Area

Unknown

Metadata

Metadata

Labels

.NETPull requests that update .net codeImprovementpublic APIAdditions/modifications to, or removals from, the public API surface area.

Projects

Status

No status

Status

No status

Relationships

None yet

Development

No branches or pull requests

Issue actions