opentelemetry-lambda-tower 0.1.6

OpenTelemetry Tower middleware for AWS Lambda
Documentation
# THIS FILE IS AUTOMATICALLY GENERATED BY CARGO
#
# When uploading crates to the registry Cargo will automatically
# "normalize" Cargo.toml files for maximal compatibility
# with all versions of Cargo and also rewrite `path` dependencies
# to registry (e.g., crates.io) dependencies.
#
# If you are reading this file be aware that the original Cargo.toml
# will likely look very different (and much more reasonable).
# See Cargo.toml.orig for the original contents.

[package]
edition = "2024"
rust-version = "1.92"
name = "opentelemetry-lambda-tower"
version = "0.1.6"
authors = ["Daniel Verrall"]
build = false
autolib = false
autobins = false
autoexamples = false
autotests = false
autobenches = false
description = "OpenTelemetry Tower middleware for AWS Lambda"
documentation = "https://docs.rs/opentelemetry-lambda-tower"
readme = "README.md"
keywords = [
    "lambda",
    "opentelemetry",
    "tracing",
    "aws",
    "serverless",
]
categories = [
    "development-tools::profiling",
    "web-programming",
]
license = "MIT"
repository = "https://github.com/djvcom/lambda-observability"

[package.metadata.docs.rs]
all-features = true
rustdoc-args = [
    "--cfg",
    "docsrs",
]

[features]
default = [
    "http",
    "sqs",
]
full = [
    "http",
    "sqs",
    "sns",
    "lambda-http",
]
fuzz = [
    "http",
    "sqs",
    "sns",
]
http = ["aws_lambda_events/apigw"]
lambda-http = [
    "dep:lambda_http",
    "aws_lambda_events/apigw",
    "aws_lambda_events/alb",
]
sns = ["aws_lambda_events/sns"]
sqs = ["aws_lambda_events/sqs"]

[lib]
name = "opentelemetry_lambda_tower"
path = "src/lib.rs"

[[example]]
name = "http_handler"
path = "examples/http_handler.rs"
required-features = ["lambda-http"]

[[example]]
name = "sqs_handler"
path = "examples/sqs_handler.rs"
required-features = ["sqs"]

[[test]]
name = "middleware_test"
path = "tests/middleware_test.rs"

[[test]]
name = "sample_events"
path = "tests/sample_events.rs"

[[test]]
name = "semantic_conventions"
path = "tests/semantic_conventions.rs"

[dependencies.aws_lambda_events]
version = "1.1"
features = []
default-features = false

[dependencies.futures-core]
version = "0.3"

[dependencies.http]
version = "1"

[dependencies.lambda_http]
version = "1.1.3"
optional = true

[dependencies.lambda_runtime]
version = "1.1"

[dependencies.opentelemetry]
version = "0.31"

[dependencies.opentelemetry-semantic-conventions]
version = "0.31"
features = ["semconv_experimental"]

[dependencies.opentelemetry_sdk]
version = "0.31"
features = ["rt-tokio"]

[dependencies.pin-project]
version = "1"

[dependencies.serde]
version = "1.0"
features = [
    "derive",
    "derive",
]

[dependencies.tokio]
version = "1.52"
features = [
    "macros",
    "rt-multi-thread",
    "sync",
    "time",
    "net",
]

[dependencies.tower]
version = "0.5"

[dependencies.tower-service]
version = "0.3"

[dependencies.tracing]
version = "0.1"

[dependencies.tracing-opentelemetry]
version = "0.32"

[dev-dependencies.aws_lambda_events]
version = "1.1"
features = [
    "apigw",
    "sqs",
    "sns",
]

[dev-dependencies.chrono]
version = "0.4"
features = ["serde"]

[dev-dependencies.lambda_http]
version = "1.1.3"

[dev-dependencies.mock-collector]
version = "0.2.11"

[dev-dependencies.opentelemetry-configuration]
version = "0.3.2"

[dev-dependencies.opentelemetry-stdout]
version = "0.31"

[dev-dependencies.serde]
version = "1.0"
features = [
    "derive",
    "derive",
]

[dev-dependencies.serde_json]
version = "1"

[dev-dependencies.serial_test]
version = "3.4"

[dev-dependencies.temp-env]
version = "0.3"

[dev-dependencies.tokio]
version = "1"
features = [
    "full",
    "test-util",
    "macros",
]

[dev-dependencies.tokio-test]
version = "0.4"

[dev-dependencies.tracing-subscriber]
version = "0.3"
features = [
    "env-filter",
    "fmt",
]