Module service

Module service 

Source
Expand description

Tower services for Lambda extension lifecycle and telemetry processing.

This module provides Tower Service implementations that integrate with the lambda_extension crate for proper lifecycle management. Using the official Lambda extension library ensures correct handling of SHUTDOWN events and telemetry delivery timing.

The services use a shared RwLock to coordinate shutdown with telemetry processing. The TelemetryService holds a read lock while processing events, and the EventsService acquires a write lock on SHUTDOWN before performing the final flush. This ensures all in-flight telemetry is processed before shutdown completes.

Structsยง

EventsService
Tower service for processing Lambda extension lifecycle events.
ExtensionState
Shared state for extension services.
TelemetryService
Tower service for processing Lambda Telemetry API events.