Skip to content

Commit

Permalink
Allow python X-Ray to be set via env
Browse files Browse the repository at this point in the history
Closes lambci#61
  • Loading branch information
mhart committed Jan 22, 2018
1 parent f94bdd5 commit c967e90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python2.7/run/runtime-mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _arn(region, account_id, fct_name):
_GLOBAL_XRAY_TRACE_ID = None
_GLOBAL_XRAY_PARENT_ID = None
_GLOBAL_XRAY_SAMPLED = None
_GLOBAL_X_AMZN_TRACE_ID = None
_GLOBAL_X_AMZN_TRACE_ID = os.environ.get('_X_AMZN_TRACE_ID', None)
_GLOBAL_INVOKED = False
_GLOBAL_ERRORED = False
_GLOBAL_START_TIME = None
Expand Down
2 changes: 1 addition & 1 deletion python3.6/run/runtime-mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def _arn(region, account_id, fct_name):
_GLOBAL_XRAY_TRACE_ID = None
_GLOBAL_XRAY_PARENT_ID = None
_GLOBAL_XRAY_SAMPLED = None
_GLOBAL_X_AMZN_TRACE_ID = None
_GLOBAL_X_AMZN_TRACE_ID = os.environ.get('_X_AMZN_TRACE_ID', None)
_GLOBAL_INVOKED = False
_GLOBAL_ERRORED = False
_GLOBAL_START_TIME = None
Expand Down

0 comments on commit c967e90

Please sign in to comment.