Instrument AWS Lambda functions for Splunk Observability Cloud 🔗
Use the Splunk OpenTelemetry Lambda layer to automatically instrument AWS Lambda functions to send application metrics and traces to Splunk APM. The layer supports numerous programming languages through integrated wrappers, and includes a metrics extension that collects high-resolution, low-latency metrics every time the function runs.
To instrument your AWS Lambda function using the Splunk OpenTelemetry Lambda layer, select the deployment mode that best adapts to your needs.
Deployment mode |
When to use |
---|---|
All components are in a single layer, including the Collector. This is the most comprehensive deployment method and is suited for production environments. |
|
Use separate layers for your language or runtime, Collector, and metric extension. This method reduces performance overhead. |
|
Use a layer for your language or runtime and configure the Collector in data forwarding mode in EC2. This is the instrumentation method that uses the least resources, though it requires more configuration. |
.NET and Go functions require additional instructions:
Instrument your .NET AWS Lambda function for Splunk Observability Cloud
Instrument your Go Lambda function for Splunk Observability Cloud
Splunk Observability Cloud can also collect AWS Lambda metrics and logs from AWS CloudWatch. See Connect AWS to Splunk Observability Cloud for more information on how to connect Splunk Observability Cloud to your AWS services.
For a walkthrough of tasks related to using AWS cloud services with your infrastructure, see Tutorial: Configure the Splunk Distribution of OpenTelemetry Collector on a Linux host.