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

Function main

examples/extension-combined/src/main.rs:30–42  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28
29#[tokio::main]
30async fn main() -> Result<(), Error> {
31 // required to enable CloudWatch error logging by the runtime
32 tracing::init_default_subscriber();
33
34 let func = service_fn(my_extension);
35 let logs_processor = SharedService::new(service_fn(my_log_processor));
36
37 Extension::new()
38 .with_events_processor(func)
39 .with_logs_processor(logs_processor)
40 .run()
41 .await
42}

Callers

nothing calls this directly

Calls 4

init_default_subscriberFunction · 0.85
with_logs_processorMethod · 0.80
with_events_processorMethod · 0.80
runMethod · 0.45

Tested by

no test coverage detected