From 15430e5ecc709644a345611a57878a3222c45c20 Mon Sep 17 00:00:00 2001 From: ryomak Date: Mon, 1 Apr 2024 01:11:36 +0900 Subject: [PATCH] feat: update readme --- README.md | 27 +++++++++++++-------------- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/README.md b/README.md index 4d156bc..08ffb3c 100644 --- a/README.md +++ b/README.md @@ -94,20 +94,19 @@ The location where serrs.Wrap is executed is saved as a stack trace and displaye ```go serrs.ReportSentry( - err, - // Customize the contexts - serrs.WithSentryContexts(map[string]sentry.Context{ - "custom": map[string]any{ - "key": "value", - }, - }), - // Customize the Sentry tags - serrs.WithSentryTags(map[string]string{ - "code": serrs.GetErrorCodeString(err), - }), - - // Customize the Sentry Level - serrs.WithSentryLevel(sentry.LevelInfo), + err, + // Customize the contexts + serrs.WithSentryContexts(map[string]sentry.Context{ + "custom": map[string]any{ + "key": "value", + }, + }), + // Customize the Sentry tags + serrs.WithSentryTags(map[string]string{ + "code": serrs.GetErrorCodeString(err), + }), + // Customize the Sentry Level + serrs.WithSentryLevel(sentry.LevelInfo), ) ```