diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 2f9dd6f..f1346b3 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -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 ------------- diff --git a/nameko_tracer/adapters.py b/nameko_tracer/adapters.py index 15fe72e..444f4c4 100644 --- a/nameko_tracer/adapters.py +++ b/nameko_tracer/adapters.py @@ -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 diff --git a/nameko_tracer/constants.py b/nameko_tracer/constants.py index c21ce3a..b9a8703 100644 --- a/nameko_tracer/constants.py +++ b/nameko_tracer/constants.py @@ -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 diff --git a/setup.py b/setup.py index 0d23409..f7baff6 100644 --- a/setup.py +++ b/setup.py @@ -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='wearehiring@student.com',