mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
* 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
Read this on the main serverless docs site
serverless_sdk
When using the Serverless Dashboard, the framework automatically injects the serverless_sdk
module into your lambda package and wraps your lambda to automatically instrument all the
monitoring features in the Dashboard.
It also has certain features you can use directly in your lambda such as capturing an error in the Dashboard without causing your lambda to error and custom function spans.
Advanced Span Configuration
For most of the SDK configuration, like turning on/off span collection, follow the Monitoring Configuration instructions to modify your serverless.yml appropriately.
If needed, you can configure HTTP span collection with the following environment variables
SERVERLESS_ENTERPRISE_SPANS_CAPTURE_HOSTS-*by default. Set to a comma delimited list of host names to capture.SERVERLESS_ENTERPRISE_SPANS_IGNORE_HOSTS- not set by default. Set to comma delimited list of hostnames to not capture.SERVERLESS_ENTERPRISE_SPANS_CAPTURE_AWS_SDK_HTTP- not set by default. Set to any value to also capture HTTP spans for requests frombotocoreoraws-sdk.