diff --git a/examples/event_handler_rest/src/middleware_getting_started.py b/examples/event_handler_rest/src/middleware_getting_started.py index 6968c85e882..9cd53d2e34f 100644 --- a/examples/event_handler_rest/src/middleware_getting_started.py +++ b/examples/event_handler_rest/src/middleware_getting_started.py @@ -16,7 +16,7 @@ def inject_correlation_id(app: APIGatewayRestResolver, next_middleware: NextMidd # Inject correlation ID in shared context and Logger app.append_context(correlation_id=correlation_id) # (2)! - logger.set_correlation_id(request_id) + logger.set_correlation_id(correlation_id) # Get response from next middleware OR /todos route result = next_middleware(app) # (3)! diff --git a/examples/event_handler_rest/src/middleware_global_middlewares_module.py b/examples/event_handler_rest/src/middleware_global_middlewares_module.py index 81b83c868ad..43fd1a1cc12 100644 --- a/examples/event_handler_rest/src/middleware_global_middlewares_module.py +++ b/examples/event_handler_rest/src/middleware_global_middlewares_module.py @@ -22,7 +22,7 @@ def inject_correlation_id(app: APIGatewayRestResolver, next_middleware: NextMidd # Inject correlation ID in shared context and Logger app.append_context(correlation_id=correlation_id) - logger.set_correlation_id(request_id) + logger.set_correlation_id(correlation_id) # Get response from next middleware OR /todos route result = next_middleware(app)