Skip to content

Azure ServiceBus Receive Transaction not accessible as CurrentTransaction #1321

@lenaschoenburg

Description

@lenaschoenburg

APM Agent version

1.10.0

Environment

Operating system and version: Linux

.NET Framework/Core name and version: .NET 5

Application Target Framework: ASP.NET Core Runtime 5.0.6

Describe the bug

With the new Azure ServiceBus support, apm-agent correctly creates transactions for every received message.
However, the transaction does not contain any spans and creating spans manually fails because there is no CurrentTransaction.

Expected behavior

Calling Tracer.CurrentTransaction() in a message handler returns the automatically created transaction.

Actual behavior

Calling Tracer.CurrentTransaction() in a message handler returns null.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions