middleware icon indicating copy to clipboard operation
middleware copied to clipboard

@hono/sentry - Help needed for Distributed tracing

Open mann1996 opened this issue 1 year ago • 3 comments

Hi,

I want to add distributed tracing to my project. I have two microservices in Hono both configured with same sentry project. currently both of them report errors separately with no link to each other. For that I need to generate two headers "Baggage" and "Sentry-trace". I cant find a way to generate these headers.

mann1996 avatar Aug 01 '24 14:08 mann1996

Hi @mann1996

@sam-lippert Can you answer this question?

yusukebe avatar Aug 02 '24 01:08 yusukebe

Did you find a solution?

marvkr avatar Jan 10 '25 17:01 marvkr

It looks like the underlying library for the middleware will be deprecated by the end of the year: https://github.com/robertcepa/toucan-js/issues/250. It would be a good idea to swap out toucan-js for the Sentry Cloudflare SDK before then.

Once that swap is made, then we should be able to point people to the official documentation for things like distributed tracing propagation: https://docs.sentry.io/platforms/javascript/tracing/trace-propagation/

sam-lippert avatar Jan 11 '25 04:01 sam-lippert