Skip to content

TraceContext: TraceParent and TraceState properties are always empty. #410

@rikbosch

Description

@rikbosch

I'm trying to setup distributed tracing in .NET 5 and as a minimum I would like to see the dependency calls of a .NET 5 worker function call in Application Insights.

I expected the worker to set System.Diagnostics.Activity.Current when processing a function invocation, but that is not the case.
So I wrote a middleware which extracts the TraceParent and TraceState properties into an ActivitySource:

image

but the TraceContext properties are always empty. I don't know if this is an issue in de worker code, or an issue in the functions host.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions