Skip to content

Introduce a trace_id based on the Context variables #490

@ateska

Description

@ateska

We need a tool for connecting actions across microservices (or even within micro service).

I want to do that using Context Variables:

  1. Set in the web handler
  2. Used in the logging as standardised structured data entry

Remarks:

  • Introduce a common way how this trace_id is passed across microservices over HTTP (and thru Kafka)
  • Remove error uuid from web handler, replace / unify this with trace_id

https://docs.python.org/3/library/contextvars.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions