npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@dash0/serverless-dash0

v1.0.1

Published

Serverless Framework plugin to automatically add Dash0 Lambda tracing layers and configuration

Readme

serverless-dash0

Serverless Framework plugin that automatically adds the Dash0 Lambda extension layer and environment variables to your functions.

Compatible with Serverless Framework v3 and v4.

Installation

npm install --save-dev @dash0/serverless-dash0

Usage

Add the plugin to your serverless.yml and configure the custom.dash0 section:

plugins:
  - "@dash0/serverless-dash0"

custom:
  dash0:
    endpoint: https://ingress.eu-west-1.aws.dash0.com:4318
    token: ${env:DASH0_TOKEN}
    layerVersion: latest

functions:
  myFunction:
    handler: handler.hello
    runtime: nodejs20.x
    dash0-traced: true

  untracedFunction:
    handler: handler.other
    runtime: nodejs20.x

Only functions with dash0-traced: true will have the Dash0 layer and environment variables added. All other functions are left untouched.

Supported runtimes

| Runtime | Layer | | --------------- | ------------------------ | | nodejs* | dash0-extension-node | | python* | dash0-extension-python | | java* | dash0-extension-java |

Container image functions (image instead of handler) are not supported. Use the Dash0 Docker images instead.

Configuration reference

All options are set under custom.dash0 in your serverless.yml.

Required

| Option | Type | Description | | --- | --- | --- | | endpoint | string | Dash0 OTLP ingestion endpoint. | | layerVersion | number or "latest" | Layer version to use. A specific version number, or "latest" to use the version bundled with the plugin. | | token | string | Dash0 API token. Required unless tokenSecretArn is provided. | | tokenSecretArn | string | ARN of an AWS Secrets Manager secret containing the Dash0 API token. Required unless token is provided. If both are set, both environment variables will be added. |

Optional

| Option | Type | Default | Env var set | Description | | --- | --- | --- | --- | --- | | tokenSecretKey | string | - | DASH0_TOKEN_SECRET_KEY | JSON key to extract the token from the secret (when the secret value is a JSON object). | | dataset | string | - | DASH0_DATASET | Route telemetry to a specific Dash0 dataset. | | extensionLogLevel | string | warn | DASH0_EXTENSION_LOG_LEVEL | Log level for the extension. One of: trace, debug, info, warn, error. | | disableAutoInstrumentation | boolean | false | DASH0_DISABLE_AUTO_INSTRUMENTATION | Disable auto-instrumentation. The extension will still create synthetic spans. | | sendOnInvocationEnd | boolean | true | DASH0_SEND_ON_INVOCATION_END | Send telemetry at the end of the current invocation instead of the beginning of the next. | | disableTelemetryLogCollection | boolean | false | DASH0_DISABLE_TELEMETRY_LOG_COLLECTION | Disable Lambda Telemetry API log collection. | | createPayloadLogRecords | boolean | true | DASH0_CREATE_PAYLOAD_LOG_RECORDS | Create log records for request/response payloads. | | requestTimeout | number | 2000 | DASH0_REQUEST_TIMEOUT | HTTP request timeout in milliseconds. | | xrayTracesEnabled | boolean | false | DASH0_XRAY_TRACES_ENABLED | Preserve X-Ray trace context. | | maskRules | string | - | DASH0_MASK_RULES | JSON array of regex patterns for masking sensitive data. | | maskEnvVars | string | - | DASH0_MASK_ENV_VARS | JSON array of regex patterns for masking environment variable values. |

Behavior

  • The plugin runs at the before:package:initialize lifecycle hook.
  • Existing function layers are preserved; the Dash0 layer is appended.
  • Existing function environment variables are never overwritten. If you set DASH0_EXTENSION_LOG_LEVEL on a specific function, the plugin will not replace it with the global value.
  • Functions with unsupported runtimes or container images are skipped with a warning.