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.
- cdk-aws-lambda-otel-auto-instrumentation - Uses OpenTelemetry auto instrumentation instead of code.
- serverless-otlp-forwarder - Built with AWS SAM instead of CDK; this is what the app is based on.
- AWS:
- Must have authenticated with Default Credentials in your local environment.
- Must have completed the CDK bootstrapping for the target AWS environment.
- OTel Vendor:
- Must have set the
OTEL_EXPORTER_OTLP_ENDPOINT
andOTEL_EXPORTER_OTLP_HEADERS
variables in your local environment.
- Must have set the
- Node.js + npm:
- Must be installed in your system.
- Docker:
- Must be installed in your system and running at deployment.
npx projen install
npx projen deploy
npx projen destroy