Headers propagation from an execution request to actions/notifications

Registered by Zelenevskii Vadim

Currently Mistal doesn`t support distribution tracing, which means that there`s no way to propagate traceId/spanId from an execution to related actions/notifications.
It leads us to an issue, because according to distribution tracing principles "traceId" should remain the same during the discovery process, which includes Mistral worflow execution.
Proposed solution is to keep some headers from execution request and propagate them later to actions/notifications.
Regexp can be stored as env variable to define headers which will be propagated .

Acceptance criteria:

Http headers which meet the regexp condition are sent to the tasks with http related actions
Http headers which meet the regexp condition are sent to all Mistral notifications
[trace_uuid=<top_level_execution_id>] is used for child executions logging as well as for top level execution

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Zelenevskii Vadim
Direction:
Needs approval
Assignee:
Zelenevskii Vadim
Definition:
Review
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

Gerrit topic: https://review.opendev.org/#/q/topic:bp/add-headers-propagation

Addressed by: https://review.opendev.org/c/openstack/mistral/+/899563
    Headers propagation from an execution request to actions/notifications

Addressed by: https://review.opendev.org/c/openstack/mistral-lib/+/900029
    Headers propagation from an execution request to actions/notifications

Gerrit topic: https://review.opendev.org/#/q/topic:headers-propagation

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.

Subscribers

No subscribers.