MCPcopy Create free account
hub / github.com/aws/aws-lambda-rust-runtime / main

Function main

examples/extension-logs-custom-service/src/main.rs:57–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

55
56#[tokio::main]
57async fn main() -> Result<(), Error> {
58 // required to enable CloudWatch error logging by the runtime
59 tracing::init_default_subscriber();
60
61 let logs_processor = SharedService::new(MyLogsProcessor::new());
62
63 Extension::new().with_logs_processor(logs_processor).run().await?;
64
65 Ok(())
66}

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