Skip to content

Commit

Permalink
Merge pull request #76 from Vlaaaaaaad/lambda-graceful-fail
Browse files Browse the repository at this point in the history
Lambda instrumentation graceful fail
  • Loading branch information
tredman authored Aug 12, 2019
2 parents d974d2f + c49b0cd commit 76265da
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,
"app.function_version": context.function_version,
"app.request_id": context.aws_request_id,
"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 76265da

Please sign in to comment.