Star us on GitHub
Star
Menu

AWS Lambda Tracing

Learn how to set up highlight.io tracing for on AWS Lambda.
1
Add the ARN layer.

Add the ARN layer to your Lambda function. Click on the "Layers" tab in the Lambda console and click "Add layer". You can find the most recent instrumentation release URLs in their releases.

AWS Lambda ARN

arn:aws:lambda:<region>:184161586896:layer:opentelemetry-<language>-<version>
Copy
2
Set the ENV vars.

Set the ENV vars to connect your Lambda to Highlight. For more details on setting up the OTeL Lambda autoinstrumentation and some language-specific details, see their documentation.

AWS Lambda ENV vars

AWS_LAMBDA_EXEC_WRAPPER=/opt/otel-instrument OTEL_EXPORTER_OTLP_ENDPOINT=https://otel.highlight.io:4318 OTEL_RESOURCE_ATTRIBUTES=highlight.project_id=<project_id>,service.name=<service_name>
Copy
3
Test your Lambda function.

Hit your Lambda function by testing it from the AWS console or sending an HTTP request to it.

4
Verify your backend traces are being recorded.

Visit the highlight traces portal and check that backend traces are coming in. AWS Lambda traces in Highlight