https://github.com/garysassano/cdk-aws-lambda-otel-code-instrumentation
CDK app that demonstrates OpenTelemetry code-based instrumentation in AWS Lambda using several runtimes. Includes a forwarder that sends telemetry data via OTLP to any OTel-compatible vendor
https://github.com/garysassano/cdk-aws-lambda-otel-code-instrumentation
aws aws-cdk aws-lambda cargo-lambda cdk faas function-as-a-service lambda lambda-instrumentation node-lambda opentelemetry otel otel-instrumentation python-lambda rust-lambda serverless
Last synced: 3 months ago
JSON representation
CDK app that demonstrates OpenTelemetry code-based instrumentation in AWS Lambda using several runtimes. Includes a forwarder that sends telemetry data via OTLP to any OTel-compatible vendor
- Host: GitHub
- URL: https://github.com/garysassano/cdk-aws-lambda-otel-code-instrumentation
- Owner: garysassano
- License: apache-2.0
- Created: 2024-11-23T03:39:36.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2025-02-11T17:22:38.000Z (3 months ago)
- Last Synced: 2025-02-11T18:30:12.047Z (3 months ago)
- Topics: aws, aws-cdk, aws-lambda, cargo-lambda, cdk, faas, function-as-a-service, lambda, lambda-instrumentation, node-lambda, opentelemetry, otel, otel-instrumentation, python-lambda, rust-lambda, serverless
- Language: Rust
- Homepage:
- Size: 194 KB
- Stars: 1
- 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
CDK app that demonstrates OpenTelemetry [code-based instrumentation](https://opentelemetry.io/docs/concepts/instrumentation/code-based/) in AWS Lambda using several runtimes. Includes a forwarder that sends telemetry data via OTLP to any OTel-compatible vendor.
### Related Apps
- [cdk-aws-lambda-otel-auto-instrumentation](https://github.com/garysassano/cdk-aws-lambda-otel-auto-instrumentation) - Uses OpenTelemetry auto instrumentation instead of code.
- [serverless-otlp-forwarder](https://github.com/dev7a/serverless-otlp-forwarder) - Built with AWS SAM instead of CDK; this is what the app is based on.## 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.
- **_OTel Vendor:_**
- Must have set the `OTEL_EXPORTER_OTLP_ENDPOINT` and `OTEL_EXPORTER_OTLP_HEADERS` variables in your local environment.
- **_Node.js + npm:_**
- Must be [installed](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm) in your system.
- **_Docker:_**
- Must be [installed](https://docs.docker.com/get-docker/) in your system and running at deployment.## Installation
```sh
npx projen install
```## Deployment
```sh
npx projen deploy
```## Cleanup
```sh
npx projen destroy
```## Application Diagram

## OpenTelemetry Diagram
