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

Manual breadcrumbs not working #785

Open
connormullett opened this issue Feb 16, 2024 · 1 comment
Open

Manual breadcrumbs not working #785

connormullett opened this issue Feb 16, 2024 · 1 comment

Comments

@connormullett
Copy link

Summary

Steps To Reproduce

We have our breadcrumbs creation logic encapsulated in our logger implementation using the folllowing snippet where the level changes between each level of the logger.

sentry.AddBreadcrumb(&sentry.Breadcrumb{
    Message:   fmt.Sprintf(format, args...),
    Level:     sentry.LevelDebug,
    Timestamp: time.Time{},
})

Do we need to be doing anything else here? Add an integration for breadcrumbs? Can't find any go documentation on how to add the integration if it exists

Expected Behavior

We see breadcrumbs in sentry web UI

Screenshots

Sentry.io Event

Environment

SDK

  • sentry-go version: 0.25.0
  • Go version: 1.26.1
  • Using Go Modules? [yes/no] unsure

Sentry

  • Using hosted Sentry in sentry.io? [yes/no] no
  • Using your own Sentry installation? Version:
  • Anything particular to your environment that could be related to this issue?

Additional context

@cleptric
Copy link
Member

Maybe give https://docs.sentry.io/platforms/go/usage/concurrency/ a read.
The code you shared looks fine, but it depends on how and where it is called.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

2 participants