opentelemetry_lambda_tower/extractors/
mod.rs

1//! Event-specific trace context extractors.
2//!
3//! This module provides extractors for common Lambda event types.
4//! Each extractor is feature-gated:
5//!
6//! - `http` - API Gateway HTTP API (v2) and REST API (v1)
7//! - `sqs` - SQS message events
8//! - `sns` - SNS notification events
9//!
10//! Enable features via Cargo.toml:
11//!
12//! ```toml
13//! [dependencies]
14//! opentelemetry-lambda-tower = { version = "0.1", features = ["http", "sqs"] }
15//! ```
16
17#[cfg(feature = "http")]
18pub mod http;
19
20#[cfg(feature = "sqs")]
21pub mod sqs;
22
23#[cfg(feature = "sns")]
24pub mod sns;