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.

OpenTelemetry support

See original GitHub issue

Hi, first of all thanks for your work.

RabbitMq doesn’t have OpenTelemetry integration yet, we might add the propagation of w3c trace context (traceparent) + start to use ActivitySource in the library to have an option of get some traces with EasyNetQ.

At the moment we can’t use IProduceConsumeInterceptor (and consume interceptors) to add this, because it can’t know when the span ends.

For now I use reflection to do it, because I can’t override RabbitAdvancedBus.Consume (it’s not virtual) & it uses some internal types (like ConsumeConfiguration).

I don’t like this approach, because it’s fragile, and it’s better to have OpenTelemetry support on EasyNetQ side. I’ll add a PR with a basic implementation without additional dependencies to OpenTelemetry packages.

upd: PR - #1610


Additional links / docs:

RabbitMq issues for tracking:

https://github.com/rabbitmq/rabbitmq-dotnet-client/issues/776 https://github.com/rabbitmq/rabbitmq-dotnet-client/pull/1261

Issue Analytics

  • State:open
  • Created 8 months ago
  • Reactions:1
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Plinercommented, Feb 2, 2023

At the moment we can’t use IProduceConsumeInterceptor (and consume interceptors) to add this, because it can’t know when the span ends.

@vchirikov Please give me a little more time to think about reworking IProduceConsumeInterceptor to implement tracing through it.

0reactions
orionstudtcommented, Aug 16, 2023

Is our only recourse to wait for v8 with #1628 ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

OpenTelemetry
Use it to instrument, generate, collect, and export telemetry data (metrics, logs, and traces) to help you analyze your software's performance and behavior....
Read more >
An Essential Guide to OpenTelemetry
OpenTelemetry is an open source project under the Cloud Native Computing Foundation (CNCF) that offers a unified framework for generating, collecting and ...
Read more >
Supported libraries, frameworks, application servers, and ...
Library/Framework Auto‑instrumented versions Standalone Library Instrumentation Akka Actors 2.5+ N/A Akka HTTP 10.0+ N/A Apache Axis2 1.6+ N/A
Read more >
What is OpenTelemetry? An open source standard for logs, ...
OTel is a specialized protocol for collecting telemetry data and exporting it to a target system. Since the CNCF project itself is open...
Read more >
What is OpenTelemetry?
OpenTelemetry provides a single, open source standard and a set of technologies to capture and export metrics, traces, and logs from your cloud-native ......
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