question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Azure ServiceBus Receive Transaction not accessible as `CurrentTransaction`

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
russcamcommented, Jun 9, 2021

@oleschoenburg I’ve opened #1331 to address

0reactions
oleschoenburgcommented, Jun 7, 2021

Great explanation @russcam! I agree that a transaction spanning the entire chain from Receive.Start to ProcessMessage.Stop would be ideal. Just having a transaction from ProcessMessage.Start to ProcessMessage.Stop seems like a decent compromise though and would be good enough for my use case.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Overview of transaction processing in Azure Service Bus
This article gives you an overview of transaction processing and the send via feature in Azure Service Bus.
Read more >
Azure ServiceBus JMS transaction support not clear
Im working on standard Java/Spring Boot stack interfacing with Azure Service Bus. No Qpid JMS. The JMS over AMQP approach is implemented in ......
Read more >
Public API | APM .NET Agent Reference [1.x]
Returns the currently active transaction. See the Transaction API to customize the current transaction. If there is no current transaction, this method will ......
Read more >
Azure Service Bus .NET SDK Deep Dive – Atomic Sends
If we execute the sends within the transaction scope we can see message are not available until the transaction scope is completed. Once...
Read more >
Capture from SQL Server using Direct Transaction Log ...
The Direct Transaction Log Access method and pipelined execution ensures optimum efficiency to keep up with the database log writers.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found