Skip to content

[BUG] Wrong measurement of SerializeAsync and DeserializeAsync diagnostics #950

@sp-jcberleur

Description

@sp-jcberleur

What is the bug?

SerializeAsync and DeserializeAsync only measure the time it takes to return the Task, not the execution time because they don't await in the using block

What is the expected behavior?

Serialize and Deserialze spans should include the execution time even in async mode

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions