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

Function main

examples/extension-telemetry-basic/src/main.rs:41–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39
40#[tokio::main]
41async fn main() -> Result<(), Error> {
42 // required to enable CloudWatch error logging by the runtime
43 tracing::init_default_subscriber();
44
45 let telemetry_processor = SharedService::new(service_fn(handler));
46
47 Extension::new()
48 .with_telemetry_processor(telemetry_processor)
49 .run()
50 .await?;
51
52 Ok(())
53}

Callers

nothing calls this directly

Calls 3

init_default_subscriberFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected