You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add snippet about JS loader and update logging integration links (#13738)
<!-- Use this checklist to make sure your PR is ready for merge. You may
delete any sections you don't need. -->
## DESCRIBE YOUR PR
- Add snippet about js loader support w/ logs
- Add links to upcoming android logging integrations
- Update prose for Java logging integrations
- Format go logs doc and add upcoming go logging integrations
## IS YOUR CHANGE URGENT?
Help us prioritize incoming PRs by letting us know when the change needs
to go live.
- [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE -->
- [ ] Other deadline: <!-- ENTER DATE HERE -->
- [x] None: Not urgent, can wait up to 1 week+
In 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 doesn't provide `context`, so wrapping the custom logger will not get the trace and current span attached.
113
-
We recommend using the `sentry.Logger` to ensure your logs are connected to spans and errors in the Sentry UI.
115
+
In order to properly attach the correct trace with each Log entry, a
116
+
`context.Context` is required. The `Write` function of the `io.Writer`
117
+
interface doesn't provide `context`, so wrapping the custom logger will not
118
+
get the trace and current span attached. We recommend using the
119
+
`sentry.Logger` to ensure your logs are connected to spans and errors in the
120
+
Sentry UI.
114
121
</Alert>
115
122
123
+
### Upcoming Integrations
124
+
125
+
We're actively working on adding more integration support for Logs. Currently we are looking at adding support for [`slog`](https://pkg.go.dev/log/slog), [`logrus`](https://pkg.go.dev/github.com/sirupsen/logrus), and [`zerolog`](https://pkg.go.dev/github.com/rs/zerolog). You can follow this [GitHub issue](https://github.com/getsentry/sentry-go/issues/1015) to track progress.
126
+
116
127
## Options
117
128
118
129
### BeforeSendLog
119
130
120
131
To filter logs, or update them before they are sent to Sentry, you can use the `BeforeSendLog` client option.
We are still working on Logs. Please open [a new GitHub issue](https://github.com/getsentry/sentry-java/issues/new/choose) for any integration you would like to see.
1
+
We're actively working on adding more integration support for Logs. You can follow progress on the following GitHub issues or open a [new one](https://github.com/getsentry/sentry-java/issues/new/choose) for any integration you would like to see.
Copy file name to clipboardExpand all lines: platform-includes/logs/integrations/java.mdx
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
We are still working on Logs. You can follow progress on the following GitHub issues or open a new one for any integration you would like to see.
1
+
We're actively working on adding more integration support for Logs. You can follow progress on the following GitHub issues or open a [new one](https://github.com/getsentry/sentry-java/issues/new/choose) for any integration you would like to see.
Logs for JavaScript are supported in Sentry JavaScript SDK version `9.17.0` and above.
2
+
3
+
<PlatformSectionsupported={["javascript"]}>
4
+
5
+
<Alertlevel="warning">
6
+
7
+
Logging is not supported in the [loader or CDN script](/platforms/javascript/install/loader/) for browser JavaScript. We recommend installing the SDK via [NPM](/platforms/javascript/install/npm/) to use logging. We are tracking support for the loader and CDN script in [this GitHub issue](https://github.com/getsentry/sentry-javascript/issues/16314).
0 commit comments