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.

[BUG] Missing DependencyTelemetry for EventHub Consumer Receive Events

See original GitHub issue

Describe the bug We recently made the upgrade from the older Microsoft.Azure.EventHubs library to the newer Azure.Messaging.EventHubs 5.6.0.

After we made the switch, we realized that the DependencyTelemetry for EventHub Receive events (which had useful information such as partition_key, start_sequence_number, consumer_group, event_count, etc) is no longer there.

We now only see DependencyTelemetry for types “Azure Event Hubs” and “Queue Message | Azure Event Hubs”, neither of which has the received message information.

Expected behavior DependencyTelemetry for Receive events is still logged with useful fields such as partition_key, start_sequence_number, consumer_group, event_count, etc.

Actual behavior (include Exception or Stack Trace) No telemetry out of the box for receive events.

To Reproduce Set up producer and consumer and instrument w/ Application Insights.

Look in the DependencyTelemetry table and look for receive events.

Environment:

  • Name and version of the Library package used: Azure.Messaging.EventHubs 5.6.0
  • Hosting platform or OS and .NET runtime version (dotnet --info output for .NET Core projects): Dotnet Core and Azure AppService

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
jsquirecommented, Sep 17, 2021

Looping in @lmolkova, who is our knowledge expert on OpenTelemetry and the author of the spec that we based our implementation on. Liudmila had some thoughts around the “receive events” activity, both as it existed in the legacy package and would apply to the current generation.

1reaction
jsquirecommented, Sep 17, 2021

Hi @xinyi-joffre. The spec that we were following had those operations split into two different activities:

  • One for “processing events” that was marked as high value and implemented in the processor types
  • One for “receiving events” that was marked as low value and would apply to the EventHubConsumerClient and PartitionReceiver (Orleans uses the latter)

To be honest, I don’t recall why the decision was made to not instrument the “receive events” activity at the time. I’ll take a follow-up to track down the folks who own our OpenTelemetry story and see what I can find out. If there are no blockers from that perspective, I’ll bring it up for consideration with the rest of the Event Hubs feature team.

Read more comments on GitHub >

github_iconTop Results From Across the Web

[QUERY] Missing App Insights dependency Telemetry with ...
Do i not see AEH dependency item generated for the event send to the EventHub. This is expected. If i deploy a simple...
Read more >
Why am I receiving this error on Azure when using ...
Nope; your error is related to having too many concurrent connections to a single Event Hub. Having a single client per Event Hub...
Read more >
Azure event hub can't make available all the events in a ...
When we are missing messages detected can please check if we have 55 events made to the eventhubs hence ruling out the producer...
Read more >
Troubleshoot connectivity issues - Azure Event Hubs
This article provides information on troubleshooting connectivity issues with Azure Event Hubs.
Read more >
Azure Event Hub Consumer Group with its Scenarios
When EventProcessor is idle due to some pause, not running due to error or intentional shutdown. The EventHub may be receiving events if...
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