Skip to content

Custom Request-Id for client side requests #38850

Closed
@emanuel-v-r

Description

@emanuel-v-r

On every new request, aspnetcore creates a new Activity and sets a RequestId, TraceId, and SpanId, and spans it through the logs.
Is it possible to somehow set the ParentId to a UUID coming from the client-side (javascript) via a custom HTTP header?
I understand that if this UUID comes in the Request-Id HTTP header it automatically uses it, but what if it comes in a different custom header?
Thank you.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocsThis issue tracks updating documentationarea-middlewareIncludes: URL rewrite, redirect, response cache/compression, session, and other general middlewaresfeature-diagnosticsDiagnostic middleware and pages (except EF diagnostics)

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions