https://github.com/garysassano/cdk-aws-lambda-otel-auto-instrumentation-node
CDK app showcasing OpenTelemetry zero-code instrumentation for AWS Lambda functions running on the Node.js runtime
https://github.com/garysassano/cdk-aws-lambda-otel-auto-instrumentation-node
adot-auto-instrumentation auto-instrumentation aws aws-adot aws-cdk aws-distro-for-opentelemetry aws-lambda cdk faas lambda node-lambda opentelemetry otel otel-auto-instrumentation otel-instrumentation zero-code-instrumentation
Last synced: 7 months ago
JSON representation
CDK app showcasing OpenTelemetry zero-code instrumentation for AWS Lambda functions running on the Node.js runtime
- Host: GitHub
- URL: https://github.com/garysassano/cdk-aws-lambda-otel-auto-instrumentation-node
- Owner: garysassano
- License: apache-2.0
- Created: 2024-11-21T21:20:27.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-04-04T03:21:46.000Z (7 months ago)
- Last Synced: 2025-04-04T04:19:23.750Z (7 months ago)
- Topics: adot-auto-instrumentation, auto-instrumentation, aws, aws-adot, aws-cdk, aws-distro-for-opentelemetry, aws-lambda, cdk, faas, lambda, node-lambda, opentelemetry, otel, otel-auto-instrumentation, otel-instrumentation, zero-code-instrumentation
- Language: TypeScript
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# cdk-aws-lambda-otel-auto-instrumentation-node
CDK app showcasing OpenTelemetry [zero-code instrumentation](https://opentelemetry.io/docs/concepts/instrumentation/zero-code/) for AWS Lambda functions running on the Node.js runtime. Implements [OpenTelemetry JS SDK 2.x](https://opentelemetry.io/blog/2025/otel-js-sdk-2-0/) for generating the traces which are sent to Honeycomb.
### Related Apps
- [cdk-aws-lambda-otel-code-instrumentation-node](https://github.com/garysassano/cdk-aws-lambda-otel-code-instrumentation-node) - Uses OpenTelemetry code instrumentation instead of auto.
## Prerequisites
- **_AWS:_**
- Must have authenticated with [Default Credentials](https://docs.aws.amazon.com/cdk/v2/guide/cli.html#cli_auth) in your local environment.
- Must have completed the [CDK bootstrapping](https://docs.aws.amazon.com/cdk/v2/guide/bootstrapping.html) for the target AWS environment.
- **_Honeycomb:_**
- Must have set the `HONEYCOMB_API_KEY` variable in your local environment.
- **_Node.js + npm:_**
- Must be [installed](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) in your system.
## Installation
```sh
npx projen install
```
## Deployment
```sh
npx projen deploy
```
## Cleanup
```sh
npx projen destroy
```