Azure / azure-functions-durable-python

Python library for using the Durable Functions bindings.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ability to access 'classic' Azure Function Context, so that I can trace against the same operation_Id

cmcconomyfwig opened this issue · comments

💡 Feature description
Currently, I associate my opentelemetry 'dependency' log entries against their parent operation_Id by running the following:

        carrier = {
            "traceparent": azf_context.trace_context.Traceparent,
            "tracestate": azf_context.trace_context.Tracestate,
        }
        context = extract(carrier)

(as per azure's own docs)

The azure function context is passed in as the final parameter when main() is called by any binding.

While this seems to work for activities, I am unable to find a similar context information from within durable function orchestrations.

Can you help me find out what I'm missing -- or add it?