Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions aws_lambda_opentelemetry/trace/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
)

from aws_lambda_opentelemetry.typing.context import LambdaContext
from aws_lambda_opentelemetry.utils import AwsAttributesMapper
from aws_lambda_opentelemetry.utils import AwsAttributesExtractor


def instrument_handler(**kwargs):
Expand Down Expand Up @@ -54,8 +54,8 @@ def wrapper(event: dict, context: LambdaContext):
span.record_exception(exc)
raise
finally:
mapper = AwsAttributesMapper(event, context)
mapper.add_attributes()
extractor = AwsAttributesExtractor(event, context)
extractor.add_attributes()
finally:
provider.force_flush()

Expand Down
Loading