pub struct Extension<'a, E, L> { /* private fields */ }
Expand description

An Extension that runs event and log processors

Implementations

Create a new base Extension with a no-op events processor

Create a new Extension with a given extension name

Create a new Extension with a list of given events. The only accepted events are INVOKE and SHUTDOWN.

Create a new Extension with a service that receives Lambda events.

Create a new Extension with a service that receives Lambda logs.

Create a new Extension with a list of logs types to subscribe. The only accepted log types are function, platform, and extension.

Create a new Extension with specific configuration to buffer logs.

Create a new Extension with a different port number to listen to logs.

Execute the given extension

Trait Implementations

Returns the “default value” for a type. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more