From 4d9ecffc8d872a4cf5f18e7397342fa7b1e6a93f Mon Sep 17 00:00:00 2001 From: Anton Ovchinnikov Date: Mon, 9 Jan 2023 18:10:54 +0100 Subject: [PATCH] feat(go): Add BeforeSendTransaction to Basic Options page --- src/platforms/go/common/configuration/options.mdx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/platforms/go/common/configuration/options.mdx b/src/platforms/go/common/configuration/options.mdx index 6d8c57a653006d..05c636e5c18b34 100644 --- a/src/platforms/go/common/configuration/options.mdx +++ b/src/platforms/go/common/configuration/options.mdx @@ -43,8 +43,10 @@ type ClientOptions struct { SendDefaultPII bool // BeforeSend is called before error events are sent to Sentry. // Use it to mutate the event or return nil to discard the event. - // See EventProcessor if you need to mutate transactions. BeforeSend func(event *Event, hint *EventHint) *Event + // BeforeSendTransaction is called before transaction events are sent to Sentry. + // Use it to mutate the transaction or return nil to discard the transaction. + BeforeSendTransaction func(event *Event, hint *EventHint) *Event // Before breadcrumb add callback. BeforeBreadcrumb func(breadcrumb *Breadcrumb, hint *BreadcrumbHint) *Breadcrumb // Integrations to be installed on the current Client, receives default