-
Notifications
You must be signed in to change notification settings - Fork 213
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
captureException not linking to trace #502
Comments
Thanks for writing in. I'll take a look! |
Thanks! Let me know if I can provide any more information to help |
For clarification, this seems to work just fine func TestTracing(t *testing.T) {
err := sentry.Init(sentry.ClientOptions{
Dsn: os.Getenv("SENTRY_DSN"),
Debug: true,
TracesSampleRate: 1.0,
Release: "development",
})
if err != nil {
t.Error(err)
}
ctx := context.Background()
defer sentry.Flush(2 * time.Second)
span := sentry.StartSpan(ctx, "function", sentry.TransactionName("TestTracing"))
defer span.Finish()
err = errors.New("this is an error")
sentry.CaptureException(err)
} |
@ImDevinC I opened a PR to get this fixed. This might take a while to get released, for the moment I suggest using |
Summary
When creating a transaction and a trace and then doing
sentry.CaptureException(err)
, the error is not linked to the trace properly.Steps To Reproduce
Expected Behavior
When viewing the issue on sentry.io, the exception should have a link to the relevant trace. When viewing the trace, the exception should be shown in the trace view.
Screenshots
Sentry.io Event
Error Event: 120248f44d174a1a8d2a60073153e75a
Trace Event: 7b8eaba5361f4c698e79508fa6af68f4
Environment
SDK
sentry-go
version:v0.15.0
1.19.3
yes
Sentry
yes
The text was updated successfully, but these errors were encountered: