Skip to content

Commit

Permalink
ZEN-4914 - Add original_call_id to log data (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
fobiols committed Jul 24, 2018
1 parent 77c53dc commit ea1ffb0
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
8 changes: 8 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@ Release Notes
=============


Version 1.2.0
-------------

Released 2018-07-24

* Add origin call ID to log message


Version 1.1.0
-------------

Expand Down
1 change: 1 addition & 0 deletions nameko_tracer/adapters.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ def process(self, message, kwargs):

data[constants.CALL_ID_KEY] = worker_ctx.call_id
data[constants.CALL_ID_STACK_KEY] = worker_ctx.call_id_stack
data[constants.ORIGIN_CALL_ID_KEY] = worker_ctx.origin_call_id

data[constants.STAGE_KEY] = stage.value

Expand Down
3 changes: 3 additions & 0 deletions nameko_tracer/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ class Status(Enum):
""" A key holding the call ID stack ...
"""

ORIGIN_CALL_ID_KEY = 'origin_call_id'
""" A key holding the Source of all stack calls
"""

CONTEXT_DATA_KEY = 'context_data'
""" A key holding the worker context data dictionary
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

setup(
name='nameko-tracer',
version='1.1.0',
version='1.2.0',
description='Nameko extension logging entrypoint processing metrics',
author='student.com',
author_email='[email protected]',
Expand Down

0 comments on commit ea1ffb0

Please sign in to comment.