https://github.com/garysassano/cdk-aws-lambda-otel-code-instrumentation-node
CDK app showcasing OpenTelemetry code-based instrumentation for AWS Lambda functions running on the Node.js runtime
https://github.com/garysassano/cdk-aws-lambda-otel-code-instrumentation-node
aws aws-cdk aws-lambda cdk code-based-instrumentation code-instrumentation faas lambda node-lambda opentelemetry otel otel-code-instrumentation otel-instrumentation
Last synced: about 1 month ago
JSON representation
CDK app showcasing OpenTelemetry code-based instrumentation for AWS Lambda functions running on the Node.js runtime
- Host: GitHub
- URL: https://github.com/garysassano/cdk-aws-lambda-otel-code-instrumentation-node
- Owner: garysassano
- License: apache-2.0
- Created: 2025-04-04T03:23:25.000Z (about 2 months ago)
- Default Branch: main
- Last Pushed: 2025-04-13T09:52:35.000Z (about 1 month ago)
- Last Synced: 2025-04-13T10:40:54.886Z (about 1 month ago)
- Topics: aws, aws-cdk, aws-lambda, cdk, code-based-instrumentation, code-instrumentation, faas, lambda, node-lambda, opentelemetry, otel, otel-code-instrumentation, otel-instrumentation
- Language: TypeScript
- Homepage:
- Size: 183 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-code-instrumentation-node
CDK app showcasing OpenTelemetry [code-based instrumentation](https://opentelemetry.io/docs/concepts/instrumentation/code-based/) 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-auto-instrumentation-node](https://github.com/garysassano/cdk-aws-lambda-otel-auto-instrumentation-node) - Uses OpenTelemetry auto instrumentation instead of code.
## 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
```