sentry-dotnet
sentry-dotnet copied to clipboard
Add SentrySdk.StartChild
The code to create a span on the current transaction is currently quite verbose:
var span = SentrySdk.GetSpan();
if (span == null)
{
span = SentrySdk.StartTransaction("name", "op");
}
else
{
span = span.StartChild("op");
}
It would be nice if all of that was wrapped/implied in a SentrySdk.StartChild method (those 9 lines of code could be shrunk down to 1).
funny, i've actually filed an issue related to this today, although it's not strictly a duplicate #3165