From 252583d13927c6902bf36e380013c32b1f92d2bd Mon Sep 17 00:00:00 2001 From: Matt Johnson-Pint Date: Mon, 29 Apr 2024 11:55:10 -0700 Subject: [PATCH] Set withBreadcrumbs when using NewWithHub --- writer.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/writer.go b/writer.go index a8a6527..36ef2a3 100644 --- a/writer.go +++ b/writer.go @@ -418,9 +418,10 @@ func NewWithHub(hub *sentry.Hub, opts ...WriterOption) (*Writer, error) { } return &Writer{ - hub: hub, - levels: levels, - flushTimeout: cfg.flushTimeout, + hub: hub, + levels: levels, + flushTimeout: cfg.flushTimeout, + withBreadcrumbs: cfg.breadcrumbs, }, nil }