Skip to content

Polly based retries result into telemetry for retried requests not getting captured #2556

@RamjotSingh

Description

@RamjotSingh

Microsoft publishes Polly based package which allows developers to configure retries for requests based on certain condition being true.

However, using this package results into retries not being captured in AI because AI thinks of them as duplicate requests and just captures the very first request.

I think this is happening due this following logic in AI package

I am adding a small repro of the issue. In startup.cs if you uncomment the line

AddHttpMessageHandler<TraceParentStrippingHandler>()

You will see 3 entries being recorded, otherwise only one (the very first request).

PollyAICompat.zip

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions