MCPcopy Index your code
hub / github.com/aws/aws-lambda-rust-runtime / main

Function main

examples/extension-logs-basic/src/main.rs:17–26  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15
16#[tokio::main]
17async fn main() -> Result<(), Error> {
18 // required to enable CloudWatch error logging by the runtime
19 tracing::init_default_subscriber();
20
21 let logs_processor = SharedService::new(service_fn(handler));
22
23 Extension::new().with_logs_processor(logs_processor).run().await?;
24
25 Ok(())
26}

Callers

nothing calls this directly

Calls 3

init_default_subscriberFunction · 0.85
with_logs_processorMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected