Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenTelemetry tracing #296

Open
serbrech opened this issue Jul 27, 2023 · 0 comments
Open

OpenTelemetry tracing #296

serbrech opened this issue Jul 27, 2023 · 0 comments

Comments

@serbrech
Copy link
Member

serbrech commented Jul 27, 2023

We would like to be able to enable tracing and see what the underlying amqp layer is doing as part of our application request tracing.
Today we have spans all the way to our application.Send, and we connect the trace on the receiver side by propagating the tracecontext onto the Message. But there is a lot happening on the client side in the AMQP and ServiceBus SDK layer that we would very much like to enable and see attached to our traces.

Some example of trace I would expect:
application Send -> [sbsdk.Send span if enabled in sbsdk] -> [amqp.Dial] -> amqp.NewSender -> sender.Send -> retry/attempt attributes]

  • send info
  • disposition info
  • authentication info
  • link attach

Basically frames that are rooted in a client func call and take a context, could all provide some tracing information.

Concrete Use case:

We've experienced high latency on some Send call in our application, but these are sparse and hard to reproduce.
Enabling amqp debug log in production is out of the question and not the right level of information.

Opentelemetry traces would help us narrow down what part of the chain is causing high latency.

Maybe it's a retry on the CBS authentication?
Maybe it's retries/timeouts on the send?
Maybe there won't be any retries and we would see a single Send span hanging?

@serbrech serbrech changed the title Provide opentelemetry tracing integration OpenTelemetry tracing Jul 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant