Docs.rs
  • lambda-extension-0.10.0
    • lambda-extension 0.10.0
    • Docs.rs crate page
    • Apache-2.0
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • bnusunny
    • maxday
    • jlizen
    • Dependencies
      • async-stream ^0.3 normal
      • bytes ^1 normal
      • chrono ^0.4 normal
      • http ^1.0 normal
      • http-body-util ^0.1 normal
      • hyper ^1.0 normal
      • hyper-util ^0.1.1 normal
      • lambda_runtime_api_client ^0.10 normal
      • serde ^1 normal
      • serde_json ^1 normal
      • tokio ^1.0 normal
      • tokio-stream ^0.1.2 normal
      • tower ^0.4 normal
      • tracing ^0.1 normal
    • Versions
    • 100% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation

Crate lambda_extension

lambda_extension0.10.0

  • All Items
  • Re-exports
  • Modules
  • Structs
  • Enums
  • Traits
  • Functions
  • Type Aliases

Crates

  • lambda_extension
?
Change settings

Crate lambda_extension

source ·
Expand description

This module includes utilities to create Lambda Runtime Extensions.

Create a type that conforms to the Extension trait. This type can then be passed to the the lambda_extension::run function, which launches and runs the Lambda runtime extension.

Re-exports§

  • pub use tower;

Modules§

  • requests
    Include several request builders to interact with the Extension API.
  • tracing
    Utilities to initialize and use tracing and tracing-subscriber in Lambda Functions. This module provides primitives to work with tracing and tracing-subscriber in Lambda functions.

Structs§

  • Extension
    An Extension that runs event, log and telemetry processors
  • ExtensionError
    Simple error that encapsulates human readable descriptions
  • Identity
    A no-op generic processor
  • InitReportMetrics
    Init report metrics
  • InvokeEvent
    Event received when there is a new Lambda invocation.
  • LambdaEvent
    Wrapper with information about the next event that the Lambda Runtime is going to process
  • LambdaLog
    Payload received from the Lambda Logs API See: https://docs.aws.amazon.com/lambda/latest/dg/runtimes-logs-api.html#runtimes-logs-api-msg
  • LambdaTelemetry
    Payload received from the Telemetry API
  • LogBuffering
    Log buffering configuration. Allows Lambda to buffer logs before delivering them to a subscriber.
  • LogPlatformReportMetrics
    Platform report metrics
  • MakeIdentity
    Service factory to generate no-op generic processors
  • RegisteredExtension
    An extension registered by calling Extension::register.
  • ReportMetrics
    Report metrics
  • RuntimeDoneMetrics
    Runtime done metrics
  • SharedService
    A MakeService that produces services by cloning an inner service.
  • ShutdownEvent
    Event received when a Lambda function shuts down.
  • Span
    Span
  • TraceContext
    Tracing Context
  • Tracing
    Request tracing information

Enums§

  • InitPhase
    Phase in which initialization occurs
  • InitType
    Type of Initialization
  • LambdaLogRecord
    Record in a LambdaLog entry
  • LambdaTelemetryRecord
    Record in a LambdaTelemetry entry
  • NextEvent
    Event that the extension receives in either the INVOKE or SHUTDOWN phase
  • Status
    Status of invocation/initialization
  • TracingType
    Type of tracing

Traits§

  • Service
    An asynchronous function from a Request to a Response.

Functions§

  • run
    Execute the given events processor
  • service_fn
    Returns a new ServiceFn with the given closure.

Type Aliases§

  • Error
    Error type that extensions may result in

Results

struct
lambda_extension::tracing::span::EnteredSpan
An owned version of Entered, a guard representing a span …
method
lambda_extension::tracing::span::EnteredSpan::drop
method
lambda_extension::tracing::span::EnteredSpan::exit
Exits this span, returning the underlying Span.
method
lambda_extension::tracing::span::EnteredSpan::deref
method
lambda_extension::tracing::span::EnteredSpan::id
Returns this span’s Id, if it is enabled.
method
lambda_extension::tracing::span::EnteredSpan::fmt
method
lambda_extension::tracing::Span::entered
Enters this span, consuming it and returning a guard that …