()
| 39 | |
| 40 | #[tokio::main] |
| 41 | async 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 | } |
nothing calls this directly
no test coverage detected