Skip to content

Commit

Permalink
Grace
Browse files Browse the repository at this point in the history
  • Loading branch information
Vlaaaaaaad committed Aug 9, 2019
1 parent b00ad86 commit c49b0cd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions beeline/middleware/awslambda/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def _beeline_wrapper(event, context):
with beeline.tracer(name=handler.__name__,
trace_id=trace_id, parent_id=parent_id):
beeline.add_context({
"app.function_name": context.function_name or "",
"app.function_version": context.function_version or "",
"app.request_id": context.aws_request_id or "",
"app.function_name": getattr(context, 'function_name', ""),
"app.function_version": getattr(context, 'function_version', ""),
"app.request_id": getattr(context, 'aws_request_id', ""),
"app.event": event,
"meta.cold_start": COLD_START,
})
Expand Down

0 comments on commit c49b0cd

Please sign in to comment.