Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion docs/platforms/android/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ Select which Sentry features you'd like to install in addition to Error Monitori
'error-monitoring',
'performance',
'profiling',
'session-replay'
'session-replay',
'logs'
]}
/>

Expand Down Expand Up @@ -128,6 +129,10 @@ Configuration is done via the application `AndroidManifest.xml`. Here's an examp
<!-- Enable profiling on app start -->
<meta-data android:name="io.sentry.traces.profiling.start-on-app-start" android:value="true" />
<!-- ___PRODUCT_OPTION_END___ profiling -->
<!-- ___PRODUCT_OPTION_START___ logs -->
<!-- Enable logs to be sent to Sentry -->
<meta-data android:name="io.sentry.logs.enabled" android:value="true" />
<!-- ___PRODUCT_OPTION_END___ logs -->
<!-- ___PRODUCT_OPTION_START___ session-replay -->
<!-- Record session replays for 100% of errors and 10% of sessions -->
<meta-data android:name="io.sentry.session-replay.on-error-sample-rate" android:value="1.0" />
Expand Down
6 changes: 6 additions & 0 deletions docs/platforms/dart/guides/flutter/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ Select which Sentry features you'd like to install in addition to Error Monitori
'error-monitoring',
'performance',
'profiling',
'logs',
]}
/>

Expand Down Expand Up @@ -83,6 +84,11 @@ Future<void> main() async {
// Note: Profiling alpha is available for iOS and macOS since SDK version 7.12.0
options.profilesSampleRate = 1.0;
// ___PRODUCT_OPTION_END___ profiling
// ___PRODUCT_OPTION_START___ logs

// Enable logs to be sent to Sentry
options.enableLogs = true;
// ___PRODUCT_OPTION_END___ logs
},
appRunner: () => runApp(
SentryWidget(
Expand Down
6 changes: 6 additions & 0 deletions docs/platforms/dart/guides/flutter/manual-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ If you can't (or prefer not to) run the [automatic setup](/platforms/dart/guides
'error-monitoring',
'performance',
'profiling',
'logs',
]}
/>

Expand Down Expand Up @@ -49,6 +50,11 @@ Future<void> main() async {
// Note: Profiling alpha is available for iOS and macOS since SDK version 7.12.0
options.profilesSampleRate = 1.0;
// ___PRODUCT_OPTION_END___ profiling
// ___PRODUCT_OPTION_START___ logs

// Enable logs to be sent to Sentry
options.enableLogs = true;
// ___PRODUCT_OPTION_END___ logs
},
appRunner: () => runApp(
SentryWidget(
Expand Down
14 changes: 14 additions & 0 deletions docs/platforms/go/common/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,20 @@ Check out the other SDKs we support in the left-hand dropdown.

* If you don't have an account and Sentry project established already, please head over to [Sentry](https://sentry.io/signup/), and then return to this page.

## Features

In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/).

Select which Sentry features you'd like to install in addition to Error Monitoring to get the corresponding installation and configuration instructions below.

<OnboardingOptionButtons
options={[
'error-monitoring',
'performance',
'logs',
]}
/>

## Install

<PlatformContent includePath="getting-started-install" />
Expand Down
6 changes: 3 additions & 3 deletions docs/platforms/javascript/common/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ Select which Sentry features you'd like to install in addition to Error Monitori
<PlatformCategorySection notSupported={["server"]}>
<PlatformSection notSupported={["javascript", "javascript.cordova"]}>
<OnboardingOptionButtons
options={["error-monitoring", "performance", "session-replay", "user-feedback"]}
options={["error-monitoring", "performance", "session-replay", "user-feedback", "logs"]}
/>
</PlatformSection>
</PlatformCategorySection>
Expand All @@ -63,7 +63,7 @@ Select which Sentry features you'd like to install in addition to Error Monitori
<PlatformCategorySection notSupported={["browser"]}>
<PlatformSection notSupported={["javascript.bun"]}>
<OnboardingOptionButtons
options={["error-monitoring", "performance", "profiling"]}
options={["error-monitoring", "performance", "profiling", "logs"]}
/>
</PlatformSection>

Expand All @@ -72,7 +72,7 @@ In addition to capturing errors, you can monitor interactions between multiple s
Select which Sentry features you'd like to install in addition to Error Monitoring to get the corresponding installation and configuration instructions below.

<PlatformSection supported={["javascript.bun"]}>
<OnboardingOptionButtons options={["error-monitoring", "performance"]} />
<OnboardingOptionButtons options={["error-monitoring", "performance", "logs"]} />
</PlatformSection>
</PlatformCategorySection>

Expand Down
12 changes: 11 additions & 1 deletion docs/platforms/javascript/guides/angular/manual-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ You need:
Choose the features you want to configure, and this guide will show you how:

<OnboardingOptionButtons
options={["error-monitoring", "performance", "session-replay", "user-feedback"]}
options={["error-monitoring", "performance", "session-replay", "user-feedback", "logs"]}
/>

<PlatformContent includePath="getting-started-features-expandable" />
Expand Down Expand Up @@ -130,6 +130,11 @@ Sentry.init({
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
// ___PRODUCT_OPTION_END___ session-replay
// ___PRODUCT_OPTION_START___ logs

// Enable logs to be sent to Sentry
_experiments: { enableLogs: true },
// ___PRODUCT_OPTION_END___ logs
});

bootstrapApplication(AppComponent, appConfig).catch((err) =>
Expand Down Expand Up @@ -190,6 +195,11 @@ Sentry.init({
replaysSessionSampleRate: 0.1,
replaysOnErrorSampleRate: 1.0,
// ___PRODUCT_OPTION_END___ session-replay
// ___PRODUCT_OPTION_START___ logs

// Enable logs to be sent to Sentry
_experiments: { enableLogs: true },
// ___PRODUCT_OPTION_END___ logs
});

platformBrowserDynamic()
Expand Down
16 changes: 13 additions & 3 deletions docs/platforms/javascript/guides/astro/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Non-Node runtimes, like Vercel's Edge runtime or Cloudflare Pages, are currently

## Install

<OnboardingOptionButtons options={["error-monitoring", "performance", "profiling", "session-replay", "user-feedback"]} />
<OnboardingOptionButtons options={["error-monitoring", "performance", "profiling", "session-replay", "user-feedback", "logs"]} />

Sentry captures data by using an SDK within your application's runtime.

Expand Down Expand Up @@ -119,8 +119,13 @@ Sentry.init({
}),
// ___PRODUCT_OPTION_END___ user-feedback
],
// ___PRODUCT_OPTION_START___ performance
// ___PRODUCT_OPTION_START___ logs

// Enable logs to be sent to Sentry
_experiments: { enableLogs: true },
// ___PRODUCT_OPTION_END___ logs

// ___PRODUCT_OPTION_START___ performance
// Define how likely traces are sampled. Adjust this value in production,
// or use tracesSampler for greater control.
tracesSampleRate: 1.0,
Expand Down Expand Up @@ -159,8 +164,13 @@ Sentry.init({
nodeProfilingIntegration(),
],
// ___PRODUCT_OPTION_END___ profiling
// ___PRODUCT_OPTION_START___ performance
// ___PRODUCT_OPTION_START___ logs

// Enable logs to be sent to Sentry
_experiments: { enableLogs: true },
// ___PRODUCT_OPTION_END___ logs

// ___PRODUCT_OPTION_START___ performance
// Define how likely traces are sampled. Adjust this value in production,
// or use tracesSampler for greater control.
tracesSampleRate: 1.0,
Expand Down
4 changes: 2 additions & 2 deletions docs/platforms/javascript/guides/azure-functions/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ Select which Sentry features you'd like to install in addition to Error Monitori

## Install

<OnboardingOptionButtons options={["error-monitoring", "performance", "profiling"]} />
<OnboardingOptionButtons options={["error-monitoring", "performance", "profiling", "logs"]} />

Sentry captures data by using an SDK within your applications runtime. This means that you have to add `@sentry/node` as a runtime dependency to your application:
Sentry captures data by using an SDK within your application's runtime. This means that you have to add `@sentry/node` as a runtime dependency to your application:

<PlatformContent includePath="getting-started-install" />

Expand Down
4 changes: 2 additions & 2 deletions docs/platforms/javascript/guides/bun/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ In addition to capturing errors, you can monitor interactions between multiple s

Select which Sentry features you'd like to install in addition to Error Monitoring to get the corresponding installation and configuration instructions below.

<OnboardingOptionButtons options={["error-monitoring", "performance"]} />
<OnboardingOptionButtons options={["error-monitoring", "performance", "logs"]} />

Sentry captures data by using an SDK within your applications runtime.
Sentry captures data by using an SDK within your application's runtime.

```bash {tabTitle:Bun}
bun add @sentry/bun
Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/javascript/guides/capacitor/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Select which Sentry features you'd like to install in addition to Error Monitori

## Install

<OnboardingOptionButtons options={["error-monitoring", "performance", "session-replay", "user-feedback"]} />
<OnboardingOptionButtons options={["error-monitoring", "performance", "session-replay", "user-feedback", "logs"]} />

Sentry captures data by using an SDK within your application's runtime.

Expand Down
15 changes: 15 additions & 0 deletions docs/platforms/javascript/guides/cloudflare/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,16 @@ Take a look at your framework of choice, as there are likely additional instruct

If you're not using one of these frameworks, or are just looking for general instructions for Cloudflare usage, you're in the right place.

## Features

In addition to capturing errors, you can monitor interactions between multiple services or applications by [enabling tracing](/concepts/key-terms/tracing/).

Select which Sentry features you'd like to install in addition to Error Monitoring to get the corresponding installation and configuration instructions below.

<OnboardingOptionButtons
options={["error-monitoring", "performance", "logs"]}
/>

## Install

<PlatformContent includePath="getting-started-install" />
Expand Down Expand Up @@ -75,6 +85,11 @@ export const onRequest = [
// Adds request headers and IP for users, for more info visit:
// https://docs.sentry.io/platforms/javascript/guides/cloudflare/configuration/options/#sendDefaultPii
sendDefaultPii: true,
// ___PRODUCT_OPTION_START___ logs

// Enable logs to be sent to Sentry
_experiments: { enableLogs: true },
// ___PRODUCT_OPTION_END___ logs

// ___PRODUCT_OPTION_START___ performance
// Set tracesSampleRate to 1.0 to capture 100% of spans for tracing.
Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/javascript/guides/deno/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ In addition to capturing errors, you can monitor interactions between multiple s

Select which Sentry features you'd like to install in addition to Error Monitoring to get the corresponding installation and configuration instructions below.

<OnboardingOptionButtons options={["error-monitoring", "performance"]} />
<OnboardingOptionButtons options={["error-monitoring", "performance", "logs"]} />

```javascript {tabTitle: Deno}
import * as Sentry from "npm:@sentry/deno";
Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/javascript/guides/electron/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Select which Sentry features you'd like to install in addition to Error Monitori

## Install

<OnboardingOptionButtons options={["error-monitoring", "performance", "session-replay", "user-feedback"]} />
<OnboardingOptionButtons options={["error-monitoring", "performance", "session-replay", "user-feedback", "logs"]} />

```bash {tabTitle:npm}
npm install @sentry/electron --save
Expand Down
9 changes: 7 additions & 2 deletions docs/platforms/javascript/guides/ember/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Select which Sentry features you'd like to install in addition to Error Monitori

## Install

<OnboardingOptionButtons options={["error-monitoring", "performance", "session-replay", "user-feedback"]} />
<OnboardingOptionButtons options={["error-monitoring", "performance", "session-replay", "user-feedback", "logs"]} />

Sentry captures data by using an SDK within your application's runtime.

Expand Down Expand Up @@ -62,8 +62,13 @@ Sentry.init({
// ___PRODUCT_OPTION_END___ user-feedback
],
// ___PRODUCT_OPTION_END___ session-replay
// ___PRODUCT_OPTION_START___ performance
// ___PRODUCT_OPTION_START___ logs

// Enable logs to be sent to Sentry
_experiments: { enableLogs: true },
// ___PRODUCT_OPTION_END___ logs

// ___PRODUCT_OPTION_START___ performance
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for tracing.
// We recommend adjusting this value in production
Expand Down
9 changes: 7 additions & 2 deletions docs/platforms/javascript/guides/gatsby/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Select which Sentry features you'd like to install in addition to Error Monitori

## Install

<OnboardingOptionButtons options={["error-monitoring", "performance", "session-replay", "user-feedback"]} />
<OnboardingOptionButtons options={["error-monitoring", "performance", "session-replay", "user-feedback", "logs"]} />

To use Sentry with your Gatsby application, you will need to use `@sentry/gatsby` (Sentry's Gatsby SDK):

Expand Down Expand Up @@ -78,8 +78,13 @@ Sentry.init({
}),
// ___PRODUCT_OPTION_END___ user-feedback
],
// ___PRODUCT_OPTION_START___ performance
// ___PRODUCT_OPTION_START___ logs

// Enable logs to be sent to Sentry
_experiments: { enableLogs: true },
// ___PRODUCT_OPTION_END___ logs

// ___PRODUCT_OPTION_START___ performance
// Set tracesSampleRate to 1.0 to capture 100%
// of transactions for tracing.
// We recommend adjusting this value in production
Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/javascript/guides/gcp-functions/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ Select which Sentry features you'd like to install in addition to Error Monitori
## Install

<OnboardingOptionButtons
options={["error-monitoring", "performance", "profiling"]}
options={["error-monitoring", "performance", "profiling", "logs"]}
/>

Add `@sentry/google-cloud-serverless` as a dependency to `package.json`:
Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/javascript/guides/hono/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ In addition to capturing errors, you can monitor interactions between multiple s
Select which Sentry features you'd like to install in addition to Error Monitoring to get the corresponding installation and configuration instructions below.

<OnboardingOptionButtons
options={["error-monitoring", "performance", "profiling"]}
options={["error-monitoring", "performance", "profiling", "logs"]}
/>

## Setup
Expand Down
2 changes: 1 addition & 1 deletion docs/platforms/javascript/guides/nestjs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ categories:
Choose the features you want to configure, and this guide will show you how:

<OnboardingOptionButtons
options={["error-monitoring", "performance", "profiling"]}
options={["error-monitoring", "performance", "profiling", "logs"]}
/>

<PlatformContent includePath="getting-started-features-expandable" />
Expand Down
Loading
Loading