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

Function main

examples/extension-telemetry-generic/src/main.rs:16–29  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 3

init_default_subscriberFunction · 0.85
runMethod · 0.45

Tested by

no test coverage detected