Docs » Instrument serverless functions for Splunk Observability Cloud » Instrument AWS Lambda functions for Splunk Observability Cloud » Migrate from SignalFx Lambda wrappers to Splunk OpenTelemetry Lambda Layer

Migrate from SignalFx Lambda wrappers to Splunk OpenTelemetry Lambda Layer 🔗

The SignalFx Lambda wrappers are deprecated. Follow these steps to migrate from the SignalFx Lambda wrappers to the Splunk OpenTelemetry Lambda Layer. For more information, see Instrument AWS Lambda functions for Splunk Observability Cloud.

Remove the SignalFx Lambda wrapper from your function 🔗

Before installing the Splunk OpenTelemetry Lambda Layer, remove any previous instrumentation, including the SignalFx Lambda wrapper.

  • If you installed the SignalFx wrapper as a layer, remove it from the console.

  • If you referenced the wrapper directly, remove the wrapper from the build.

For more information on Lambda layers, see the official AWS documentation at https://docs.aws.amazon.com/lambda/latest/dg/invocation-layers.html.

Replace the handler for your function 🔗

The Splunk OpenTelemetry Lambda Layer does not require setting a custom handler in Runtime settings.

To replace the SignalFx handler with your function handler, follow these steps:

  1. In the AWS Lambda console, open the function that you are instrumenting.

  2. Navigate to Code, then Runtime settings.

  3. Select Edit.

  4. Replace the SignalFx handler with the handler of your function.

  5. Select Save.

Install the Splunk OpenTelemetry Lambda Layer 🔗

Once you’ve removed the SignalFx Lambda wrapper from your function, install the new Splunk OpenTelemetry Lambda Layer. See Install the AWS Lambda layer.

Update the environment variables 🔗

The following table shows SignalFx Lambda wrapper environment variables and their Splunk OpenTelemetry Lambda Layer equivalents:

SignalFx environment variable

OpenTelemetry environment variable

SIGNALFX_ACCESS_TOKEN and SIGNALFX_AUTH_TOKEN

SPLUNK_ACCESS_TOKEN

SIGNALFX_TRACING_URL and SIGNALFX_API_HOSTNAME

You can set either the SPLUNK_REALM environment variable or the endpoint using the OTEL_EXPORTER_OTLP_ENDPOINT or OTEL_EXPORTER_JAEGER_ENDPOINT environment variables.

SIGNALFX_METRICS_URL

You can set either the SPLUNK_REALM or the SPLUNK_METRICS_ENDPOINT environment variables.

SIGNALFX_SEND_TIMEOUT

OTEL_INSTRUMENTATION_AWS_LAMBDA_FLUSH_TIMEOUT. See Other settings.

SIGNALFX_LAMBDA_HANDLER

AWS_LAMBDA_EXEC_WRAPPER. You must select one of the supported handlers. See Configure the Splunk OpenTelemetry Lambda Layer.

SIGNALFX_SERVICE_NAME

OTEL_SERVICE_NAME=<name_of_the_service>

SIGNALFX_ENV

OTEL_RESOURCE_ATTRIBUTES=deployment.environment=<name_of_the_environment>