An open API service indexing awesome lists of open source software.

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

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
```