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
{{ message }}
Repository navigation
Commit d922833
Browse filesBrowse the repository at this point in the historyBrowse files
If you already use `console`, capture those calls as Sentry Logs with <PlatformLinkto="/logs/#console-integration">`consoleLoggingIntegration`</PlatformLink>.
Use `Sentry.metrics` to send counters, gauges, and distributions from your app to Sentry. You can add searchable attributes to each metric.
192
-
On Node.js, <PlatformLinkto="/configuration/integrations/noderuntimemetrics/">`nodeRuntimeMetricsIntegration`</PlatformLink> also collects runtime health metrics automatically.
193
-
194
-
See <PlatformLinkto="/metrics/">Set Up Metrics</PlatformLink> for all available metric types and configuration options.
On Node.js, <PlatformLinkto="/configuration/integrations/noderuntimemetrics/">`nodeRuntimeMetricsIntegration`</PlatformLink> also collects runtime health metrics automatically.
Use `Sentry.metrics` to send counters, gauges, and distributions from your application to Sentry. You can pass attributes to search or filter by later.
116
-
On Node.js, <PlatformLinkto="/configuration/integrations/noderuntimemetrics/">`nodeRuntimeMetricsIntegration`</PlatformLink> also collects runtime health metrics automatically.
117
-
118
-
See <PlatformLinkto="/metrics/">Set Up Metrics</PlatformLink> for metric types and configuration options.
On Node.js, <PlatformLinkto="/configuration/integrations/noderuntimemetrics/">`nodeRuntimeMetricsIntegration`</PlatformLink> also collects runtime health metrics automatically.
Use `Sentry.metrics` to send counters, gauges, and distributions from your application to Sentry. You can pass attributes to search or filter by later.
114
-
For Bun, <PlatformLinkto="/configuration/integrations/bunruntimemetrics/">`bunRuntimeMetricsIntegration`</PlatformLink> also collects runtime health metrics automatically.
115
-
116
-
See <PlatformLinkto="/metrics/">Set Up Metrics</PlatformLink> for metric types and configuration options.
For Bun, <PlatformLinkto="/configuration/integrations/bunruntimemetrics/">`bunRuntimeMetricsIntegration`</PlatformLink> also collects runtime health metrics automatically.
If you already use `console`, capture those calls as Sentry Logs with <PlatformLinkto="/logs/#console-integration">`consoleLoggingIntegration`</PlatformLink>.
394
394
395
-
See <PlatformLinkto="/logs/">Set Up Logs</PlatformLink> for all available logging methods and message formatting options.
396
-
397
-
```javascript
398
-
Sentry.logger.info("User example action completed");
399
-
400
-
Sentry.logger.warn("Slow operation detected", {
401
-
operation:"data_fetch",
402
-
duration:3500,
403
-
});
404
-
405
-
Sentry.logger.error("Validation failed", {
406
-
form_field:"email",
407
-
reason:"Invalid email",
408
-
});
409
-
```
410
-
411
395
## Verify Your Setup
412
396
413
397
Let's test your setup and confirm that Sentry is working correctly and sending data to your Sentry project.
Copy file name to clipboardExpand all lines: docs/platforms/javascript/guides/cloudflare/index.mdx
+3-26Lines changed: 3 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,36 +135,13 @@ This is expected behavior in the Cloudflare Workers environment and affects all
135
135
136
136
## Send Logs
137
137
138
-
Use `Sentry.logger` to send logs at different levels, such as `info`, `warn`, or `error`. If you're already logging with `console` or Consola, you can capture those logs with <PlatformLinkto="/logs/#console-integration">our console integrations</PlatformLink>.
If you're already logging with `console` or Consola, you can capture those logs with <PlatformLinkto="/logs/#console-integration">our console integrations</PlatformLink>.
Use `Sentry.metrics` to send counters, gauges, and distributions from your application to Sentry. You can pass attributes to search or filter by later.
155
-
156
-
See <PlatformLinkto="/metrics/">Set Up Metrics</PlatformLink> for metric types and configuration options.
Copy file name to clipboardExpand all lines: docs/platforms/javascript/guides/deno/index.mdx
+4-25Lines changed: 4 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -107,36 +107,15 @@ If you omit `--allow-read` or `--allow-sys`, the SDK sends events without that d
107
107
108
108
## Send Logs
109
109
110
-
Use `Sentry.logger` to send logs at different levels, such as `info`, `warn`, or `error`. You can pass attributes to search or filter by later.
111
-
If you're already logging with `console` or Consola, you can capture those logs with <PlatformLinkto="/logs/#console-integration">our console integrations</PlatformLink>.
112
-
113
-
See <PlatformLinkto="/logs/">Set Up Logs</PlatformLink> for logging methods and message formatting.
114
-
115
-
```javascript
116
-
Sentry.logger.info("User example action completed");
If you're already logging with `console` or Consola, you can capture those logs with <PlatformLinkto="/logs/#console-integration">our console integrations</PlatformLink>.
Use `Sentry.metrics` to send counters, gauges, and distributions from your application to Sentry. You can pass attributes to search or filter by later.
126
-
For Deno, <PlatformLinkto="/configuration/integrations/denoruntimemetrics/">`denoRuntimeMetricsIntegration`</PlatformLink> also collects runtime health metrics automatically.
For Deno, <PlatformLinkto="/configuration/integrations/denoruntimemetrics/">`denoRuntimeMetricsIntegration`</PlatformLink> also collects runtime health metrics automatically.
Use `Sentry.metrics` to send counters, gauges, and distributions from your application to Sentry. You can pass attributes to search or filter by later.
219
-
220
-
See <PlatformLinkto="/metrics/">Set Up Metrics</PlatformLink> for metric types and configuration options.
Use `Sentry.logger` to send logs at different levels, such as `info`, `warn`, or `error`. You can pass attributes to search or filter by later.
128
-
If you're already logging with `console` or Consola, you can capture those logs with <PlatformLinkto="/logs/#console-integration">our console integrations</PlatformLink>.
129
-
130
-
See <PlatformLinkto="/logs/">Set Up Logs</PlatformLink> for logging methods and message formatting.
131
-
132
-
```javascript
133
-
Sentry.logger.info("User example action completed");
If you're already logging with `console` or Consola, you can capture those logs with <PlatformLinkto="/logs/#console-integration">our console integrations</PlatformLink>.
Use `Sentry.metrics` to send counters, gauges, and distributions from your application to Sentry. You can pass attributes to search or filter by later.
143
-
144
-
See <PlatformLinkto="/metrics/">Set Up Metrics</PlatformLink> for metric types and configuration options.
0 commit comments