Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 2.59 KB

Concepts-Lambda.md

File metadata and controls

45 lines (33 loc) · 2.59 KB

Lambda Concepts

NOTE: This is a draft. Feedback welcome.

Overview

Lambda has 3 constructs (wrappers, layers, and extensions). Below is an explanation of each.

NOTE: In terms of using with Splunk Observability Cloud, start with layers. This explanation leads with wrappers as the concepts build on each other. And some wrappers aren't available as layers

Lambda Wrapper

Lamda wrappers provide standard functionality so developers are focused on writing business logic rather than dealing with events, telemetry, etc. that can be abstracted.

In the context of Splunk Observability, Lambda wrappers instrument your AWS Lambda functions to send metrics and traces to Splunk Observability Cloud.

Resources:

Lambda Layer

Lambda layers are archives that contain additional code (e.g. libraries, dependencies, runtimes, etc.).

Splunk provides Lambda layers to automatically instrument AWS Lambda functions to send metrics and traces to Splunk Observability Cloud. It also includes a metrics extension (described below).

Resources:

Lambda Extension

Lambda extensions are shared libraries that run side-by-side with functions inside the same execution environment. Since extensions are running outside the function they are language-agnostic (which is different from wrappers).

Splunk's extension:

  • Is written in Golang, which is highly performant
  • Offers transparent data collection (since it's outside of the function itself)
  • Can influence instrumantation (i.e. by setting language-specific environment variables)

Resources:

  • No separate documentation, provided as part of the Lambda Layer
    • Though it can be deployed separately (see Github below)
  • Github
  • Blog Post