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