Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Update docs to reflect Dashboard v2 changes (#12155)
* docs: Update content on new monitoring * docs: Add section on orgs & members * docs: Remove reference to concurrent builds * docs: Replace "Enterprise" with "Dashboard" * docs: Updates node.js SDK docs * docs: Update menu and add upgrade guide * docs: Adding docs on span() in node.js SDK * docs: Add setEndpoint, tagging API and migration * docs: Update Python SDK migration * docs: Update Python SDK * docs: Use env vars to dsiable auto spans * docs: Remove refernece to span.* Event methods * docs: Replace "end" with "close" methods * docs: Updates config notes per new SDKs * docs: Add note on wrapping * docs: Add instrumentation steps * docs: Update syntax for disabling monitoring * docs: Update syntax on disabling dashboard monitoring * docs: Running prettify
- Loading branch information
1 parent
9b770a2
commit c66aad7
Showing
10 changed files
with
1,202 additions
and
331 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<!-- | ||
title: Serverless Dashboard - Instrumentation | ||
menuText: Instrumentation | ||
layout: Doc | ||
--> | ||
|
||
<!-- DOCS-SITE-LINK:START automatically generated --> | ||
|
||
### [Read this on the main serverless docs site](https://www.serverless.com/framework/docs/guides/monitoring/instrumentation/) | ||
|
||
<!-- DOCS-SITE-LINK:END --> | ||
|
||
# Instrumentation | ||
|
||
Once you have added the AWS Account Integration, you will need to enable | ||
instrumentation on each AWS Lambda function to enable metric, log, trace, span, | ||
and events collection in Serverless Framework Dashboard. | ||
|
||
Currently Instrumentation is supported for the Node.js 12+ and Python 3.8+ | ||
runtimes only; however, other runtime support is coming soon. | ||
|
||
## Enabling instrumentation for a function | ||
|
||
To enable instrumentation go to **Settings** > **Integrations** and select the | ||
AWS Integration, and click **Edit**. | ||
|
||
On the integration settings page you'll have the option to set the | ||
**Instrumentation** to **On**. | ||
|
||
When instrumentation is enabled, then metrics, logs, traces, spans, and events | ||
are collected and made available on Metrics and Explorer in Serverless Framework | ||
Dashboard. Instrumentation is optimized for production use, as it adds virtually | ||
no latency to the Lambda function, and Trace Sampling limits the number of | ||
ingested traces. | ||
|
||
## Trace Sampling | ||
|
||
To help you reduce costs, Serverless Framework Dashboard provides Trace Sampling | ||
to limit the number of ingested traces. | ||
|
||
No further action is needed to enable sampling. | ||
|
||
Trace sampling is applied progressively in proportion to invocation load. At | ||
low volumes the sample rate will be 0%, meaning 100% of invocations will | ||
generate traces, while at high volumes only 20% of successful invocations will | ||
be generate traces. | ||
|
||
If a trace contains any error or warning events, including any warnings | ||
generated by the SDK (e.g. invalid tag key on `setTag()`), then the Trace will | ||
not be sampled. This ensures that all errors and warnings will be available in | ||
the Trace Explorer. | ||
|
||
Metrics are not subject to Sampling. All metrics generated and collected by the | ||
Instrumentation will continue to work, even if the trace was successful. | ||
|
||
## Custom Instrumentation | ||
|
||
In addition to the automatic instrumentation of your AWS Lambda functions, you | ||
can also add custom instrumentation for setting tags, and events in your code. | ||
|
||
Use the [Node.js](./nodejs-sdk.md) and [Python](./python-sdk.md) Serverless SDK | ||
to add custom instrumentation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.