Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default trace status is "unknown_error" #1969

Closed
mattjohnsonpint opened this issue Oct 6, 2022 · 1 comment · Fixed by #1970
Closed

Default trace status is "unknown_error" #1969

mattjohnsonpint opened this issue Oct 6, 2022 · 1 comment · Fixed by #1970
Assignees
Labels
Bug Something isn't working

Comments

@mattjohnsonpint
Copy link
Contributor

mattjohnsonpint commented Oct 6, 2022

SDK Version

3.21.0

Steps to Reproduce

using Sentry;

using var _ = SentrySdk.Init(o =>
{
    o.Dsn = "...";
    o.Debug = true;
    o.TracesSampleRate = 1.0;
});

var transaction = SentrySdk.StartTransaction("name", "operation");
transaction.Finish();

Expected Result

The transaction was finished successfully, and reported as such.

The trace details page in the Sentry UI should show:

image

Actual Result

The trace context shows in the debug output with status "unknown_error":

{
    "type": "trace",
    "span_id": "faac6430a9b4477b",
    "trace_id": "0f9a3337e6f24bc2bed5b443beeb346a",
    "op": "operation",
    "status": "unknown_error"
}

And on the trace details page in the Sentry UI, it shows:
image

@mattjohnsonpint mattjohnsonpint added Bug Something isn't working Platform: .NET labels Oct 6, 2022
@mattjohnsonpint
Copy link
Contributor Author

I checked Java and Cocoa SDKs, and both use OK as the default status when none is specified. I will change .NET to match.

@mattjohnsonpint mattjohnsonpint self-assigned this Oct 6, 2022
@mattjohnsonpint mattjohnsonpint changed the title Default transaction & span status is "unknown_error" Default trace status is "unknown_error" Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

1 participant