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
Copy file name to clipboardExpand all lines: docs/platforms/javascript/guides/aws-lambda/index.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,10 +20,10 @@ On this page you'll get an overview how to install, configure and use Sentry in
20
20
21
21
## Installation
22
22
23
-
Depending on your setup, there are different ways to install and use Sentry in your Lambda functions. We recommend one of the following options:
23
+
Depending on your setup, there are different ways to install and use Sentry in your Lambda functions:
24
24
25
-
-[Install the Sentry AWS Lambda Layer](./install/cjs-layer) if your Lambda functions are written in CommonJS (CJS) using `require` syntax.
26
-
-[Install the Sentry AWS NPM package](./install/esm-npm) if your Lambda functions are running in EcmaScript Modules (ESM) using `import` syntax.
25
+
-If your Lambda functions are running in CommonJS (CJS) using `require` syntax, [install the Sentry AWS Lambda Layer](./install/cjs-layer)
26
+
-If your Lambda functions are running in EcmaScript Modules (ESM) using `import` syntax, [install the Sentry AWS NPM package](./install/esm-npm)
27
27
28
28
If you're not sure which installation method to use or want an overview of all available options to use Sentry in your Lambda functions, read the [installation methods overview](./install).
Copy file name to clipboardExpand all lines: docs/platforms/javascript/guides/aws-lambda/install/index.mdx
+5-6Lines changed: 5 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,9 +4,8 @@ sidebar_order: 1
4
4
description: "Review all installation methods for using Sentry in AWS Lambda functions"
5
5
---
6
6
7
-
<PageGrid />
8
7
9
-
## How To Decide Which Installation Method To Use
8
+
## Which Installation Method Should I Use?
10
9
11
10
Choosing the right installation method for using Sentry in your AWS Lambda functions depends on a couple of factors.
12
11
@@ -15,16 +14,16 @@ For Sentry to work correctly, you need to follow the guide for the format in whi
15
14
16
15
### My Lambda function is written in TypeScript
17
16
18
-
If you're using TypeScript, your lambda function is likely transpiled to CommonJS before running it. In this case, you should follow the CommonJS instructions.
19
-
Note that TypeScript can also be configured to output ESM, in which case you should follow the ESM instructions.
17
+
If you're using TypeScript, your lambda function is likely transpiled to CommonJS before running it. In this case, follow the [CommonJS instructions](#my-lambda-function-uses-require).
18
+
Note that TypeScript can also be configured to output ESM, in which case you should follow the [ESM instructions](#my-lambda-function-uses-import).
20
19
21
20
### My Lambda function uses `require`
22
21
23
-
If you are using `require()` in your function, you should follow the CommonJS instructions. You can choose between manually setting up Sentry or using the Lambda Layer.
22
+
If you are using `require()` in your function, follow the CommonJS instructions. Choose between [using our Lambda Layer (recommended)](./cjs-layer)or [installing the Sentry AWS NPM package](./cjs-layer).
24
23
25
24
### My Lambda function uses `import`
26
25
27
-
If you're using `import` syntax in your function and you're _not_ transpiling the code to CommonJS, you should follow the ESM instructions.
26
+
If you're using `import` syntax in your function and you're _not_ transpiling the code to CommonJS, follow the [ESM instructions](./esm-npm).
0 commit comments