File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
docs/platforms/go/common/logs Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 11---
2- title : Set Up Logs
2+ title : Set Up Logs in Go
33sidebar_title : Logs
4- description : " Structured logs allow you to send, view and query logs sent from your applications within Sentry."
4+ description : " Structured logs allow you to send, view, and query logs sent from your applications within Sentry."
55sidebar_order : 5600
66---
77
@@ -92,7 +92,7 @@ func main() {
9292 logger.Warnf (ctx, " I have params: %v and attributes" , " example param" )
9393}
9494```
95- Currently the ` attribute ` API supports only these value types: ` int ` , ` string ` , ` bool ` and ` float ` .
95+ Currently the ` attribute ` API supports only these value types: ` int ` , ` string ` , ` bool ` , and ` float ` .
9696
9797## Integrations
9898
@@ -109,7 +109,7 @@ slogger.Info("Implementing slog.Logger")
109109
110110<Alert >
111111In order to properly attach the correct trace with each Log entry, a ` context.Context ` is required. The ` Write ` function of
112- the ` io.Writer ` interface does not provide ` context ` so wrapping the custom logger will not get the trace and current span attached.
112+ the ` io.Writer ` interface doesn't provide ` context ` , so wrapping the custom logger will not get the trace and current span attached.
113113We recommend using the ` sentry.Logger ` to ensure your logs are connected to spans and errors in the Sentry UI.
114114</Alert >
115115
You can’t perform that action at this time.
0 commit comments