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: www/docs/advanced/monitoring.md
+38-27
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,8 @@ title: Monitoring
3
3
description: "Learn how to use services like Datadog, Sentry, Epsagon, and Lumigo to monitor the Lambda functions in your SST app in production."
4
4
---
5
5
6
+
import config from "../../config";
7
+
6
8
Once your app has been [deployed to production](../going-to-production.md), it's useful to be able to monitor your Lambda functions. There are a few different services that you can use for this. We'll look at them below.
For more details, [check out the Sentry docs](https://docs.sentry.io/platforms/node/guides/aws-lambda/).
97
99
98
-
## Epsagon
99
-
100
-
:::caution
101
-
102
-
Epsagon is undergoing some changes after the acquisition by Cisco. We recommend using one of the other monitoring services.
103
-
104
-
:::
105
-
106
-
[Epsagon](https://epsagon.com) is an end-to-end [Application Monitoring Service](https://epsagon.com/) and can monitor the full lifecycle of your serverless requests.
107
-
108
-
The Epsagon docs on [using a Lambda Layer](https://docs.epsagon.com/docs/getting-started/monitoring-applications/aws-lambda-layer) are incorrect. You'll need to install the Epsagon agent for your Lambda functions.
109
-
110
-
```bash
111
-
npm install epsagon
112
-
```
113
-
114
-
And wrap your Lambda functions with their tracing wrapper.
[Lumigo](https://lumigo.io) offers a [Serverless Monitoring and Debugging Platform](https://lumigo.io/).
@@ -153,6 +129,10 @@ For more details, [check out the Lumigo docs on auto-tracing](https://docs.lumig
153
129
154
130
To get started, [sign up for an account](https://console.thundra.io/landing/). Then [follow the steps in the quick start guide](https://apm.docs.thundra.io/getting-started/quick-start-guide/connect-thundra) to deploy their stack into the AWS account you wish to monitor.
155
131
132
+
:::info
133
+
Need help setting up? <a href={ config.slack_invite }>Join us on Slack</a> and head over to the <a href={ `${config.slack}app_redirect?channel=thundra` }>#thundra</a> channel. The Thundra team is ready to help.
134
+
:::
135
+
156
136
To enable Lambda monitoring, you'll need to add a layer to the functions you want to monitor. To figure out the layer ARN for the latest version, [check the badge here](https://apm.docs.thundra.io/node.js/nodejs-integration-options).
157
137
158
138
With the layer ARN, you can use the layer construct in your CDK code.
@@ -183,8 +163,13 @@ if (!scope.local) {
183
163
}
184
164
```
185
165
186
-
For more details, [check out the Thundra docs](https://apm.docs.thundra.io/).
166
+
For more details, [check out the Thundra docs](https://apm.docs.thundra.io/node.js/nodejs-integration-options).
187
167
168
+
#### Time Travel Debugging
169
+
170
+
Thudra also offers a feature called [Time Travel Debugging (TTD)](https://apm.docs.thundra.io/debugging/offline-debugging) that makes it possible to travel back in time to previous states of your application by getting a snapshot of when each line is executed. You can step over each line of the code and track the values of the variables captured during execution.
171
+
172
+
To enable TTD in your SST app, you'll need to modify the esbuild config. [Check out the Thundra docs on this](https://apm.docs.thundra.io/node.js/ttd-time-travel-debugging-for-nodejs#using-with-sst).
188
173
189
174
## New Relic
190
175
@@ -214,3 +199,29 @@ if (!scope.local) {
214
199
});
215
200
}
216
201
```
202
+
203
+
## Epsagon
204
+
205
+
:::caution
206
+
207
+
Epsagon is undergoing some changes after the acquisition by Cisco. We recommend using one of the other monitoring services.
208
+
209
+
:::
210
+
211
+
[Epsagon](https://epsagon.com) is an end-to-end [Application Monitoring Service](https://epsagon.com/) and can monitor the full lifecycle of your serverless requests.
212
+
213
+
The Epsagon docs on [using a Lambda Layer](https://docs.epsagon.com/docs/getting-started/monitoring-applications/aws-lambda-layer) are incorrect. You'll need to install the Epsagon agent for your Lambda functions.
214
+
215
+
```bash
216
+
npm install epsagon
217
+
```
218
+
219
+
And wrap your Lambda functions with their tracing wrapper.
Copy file name to clipboardexpand all lines: www/docs/design-principles.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -125,7 +125,7 @@ cron.attachPermissions([
125
125
126
126
### Having an escape hatch
127
127
128
-
We are continually working to improve the design of the SST constructs. Feel free to send us your feedback <a href={ config.slack }>via Slack</a> or <a href={ `mailto:${config.email}` }>email</a>.
128
+
We are continually working to improve the design of the SST constructs. Feel free to send us your feedback <a href={ config.slack_invite }>via Slack</a> or <a href={ `mailto:${config.email}` }>email</a>.
129
129
130
130
That said, you might run into cases where you are trying to do something that these constructs do not support. In these cases, you can fallback to using the native CDK constructs instead. This _escape hatch_ ensures that you won't be locked in to using SST's constructs.
Copy file name to clipboardexpand all lines: www/docs/faq.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -59,7 +59,7 @@ SST has a couple of defaults, like a built-in linter, type checker, and bundler.
59
59
60
60
You can disable the linter, provide your own TypeScript config, and disable bundling. You also don't have to use the higher-level constructs that SST has and just use the native CDK ones.
61
61
62
-
If you hit a limitation, feel free to hop into our <a href={ config.slack } target="\_blank">Slack community</a> and let us know about it.
62
+
If you hit a limitation, feel free to hop into our <a href={ config.slack_invite } target="\_blank">Slack community</a> and let us know about it.
63
63
64
64
### Why does SST not use CDK's built-in way to build Node.js functions?
0 commit comments