rename
This commit is contained in:
@@ -3,7 +3,7 @@ import os
|
||||
from functools import partial
|
||||
from typing import Any
|
||||
|
||||
from aws_lambda_powertools import Logger, Tracer
|
||||
from aws_lambda_powertools import Logger
|
||||
from aws_lambda_powertools.event_handler.api_gateway import (
|
||||
APIGatewayHttpResolver,
|
||||
CORSConfig,
|
||||
@@ -16,7 +16,6 @@ from api_gateway import JSONResponse
|
||||
from json_encoder import JSONEncoder
|
||||
from routes import courses, enrollments
|
||||
|
||||
tracer = Tracer()
|
||||
logger = Logger(__name__)
|
||||
cors = CORSConfig(
|
||||
allow_origin='*',
|
||||
@@ -46,6 +45,5 @@ def exc_error(exc: ServiceError):
|
||||
|
||||
|
||||
@logger.inject_lambda_context(correlation_id_path=correlation_paths.API_GATEWAY_HTTP)
|
||||
@tracer.capture_lambda_handler
|
||||
def lambda_handler(event: dict[str, Any], context: LambdaContext) -> dict[str, Any]:
|
||||
return app.resolve(event, context)
|
||||
|
||||
Reference in New Issue
Block a user