Skip to content

0.23.0

Compare
Choose a tag to compare
@getsentry-bot getsentry-bot released this 01 Aug 16:30

The Sentry SDK team is happy to announce the immediate availability of Sentry Go SDK v0.23.0.

Features

  • Initial support for Cron Monitoring (#661)

    This is how the basic usage of the feature looks like:

    // 🟑 Notify Sentry your job is running:
    checkinId := sentry.CaptureCheckIn(
      &sentry.CheckIn{
        MonitorSlug: "<monitor-slug>",
        Status:      sentry.CheckInStatusInProgress,
      },
      nil,
    )
    
    // Execute your scheduled task here...
    
    // 🟒 Notify Sentry your job has completed successfully:
    sentry.CaptureCheckIn(
      &sentry.CheckIn{
        ID:          *checkinId,
        MonitorSlug: "<monitor-slug>",
        Status:      sentry.CheckInStatusOK,
      },
      nil,
    )

    A full example of using Crons Monitoring is available here.

    More documentation on configuring and using Crons can be found here.

  • Add support for Event Attachments (#670)

    It's now possible to add file/binary payloads to Sentry events:

    sentry.ConfigureScope(func(scope *sentry.Scope) {
      scope.AddAttachment(&Attachment{
        Filename:    "report.html",
        ContentType: "text/html",
        Payload:     []byte("<h1>Look, HTML</h1>"),
      })
    })

    The attachment will then be accessible on the Issue Details page.

  • Add sampling decision to trace envelope header (#666)

  • Expose SpanFromContext function (#672)

Bug fixes

  • Make Span.Finish a no-op when the span is already finished (#660)