-
Notifications
You must be signed in to change notification settings - Fork 108
How do I trace requests from the browser? #149
Comments
Hey @gioragutt I am stuck with the same question I would be very happy if you could share your findings or how you decided to move forward. |
My 0.02 would be to use opentelemetry-web and proxy OTLP to jaeger via an OpenTelemetry Collector. |
Hey guys, I've come to use zipkin-javascript-opentracing, and configured jaeger, and my backend services, to accept the zipkin format. I'll explain more once Bayren finishes raping Barcelona 🤦🏻♂️ |
So, I'm not in front of source code, but I might as well share. What I ended up doing was using My goal is to write a library for angular, which would work with the built in Since I end up sending I'm using Java, so it was pretty easy. All I had to do was make my initialization code use It took some time to get things to work, considering I would definitely prefer having native bindings for jaeger, since it would work out of the box, and follow all the best practices. Another caveat that I noticed and is worth mentioning - I'm not sure if it's the zipkin format not supporting logs, or just @austinlparker I'm not really aware of all the details of opentelemetry, just like really high-level stuff, but it might be a good solution. Regardless, setting up Opentelemetry is also an operational overhead, which is not my to carry (but of the DevOps team). I provided the simplest solution I could find, which would contain as little hacks as possible. If the need will rise to improve the tracing, my successors (considering I'll be leaving the company soon), will hopefully be able to carry out the changes. |
I'm writing here because I've looked at most of the available options, and want to make sure I don't miss anything before I start implementing stuff on my own.
We use jaeger for tracing, and I've done all the work on the backend to write traces to jaeger.
Problem is I want the traces to start in the client side, and I can't seem to make anything work. I'm trying methods for both jaeger and zipkin since jaeger has translation layer for zipkin.
Jaeger
node
to work, making it impossible to use in the browser.Zipkin
zipkin-js
lib, but it too wants stuff from node (node-fetch
andos
to name what my webpack shouts at me).Is there any working way to trace with jaeger/zipkin from a browser?
Currently as I see, my options are to implement some kind of proxy myself, or to use the OpenTelemetry Collector.
Would appreciate help 🙏🏻
The text was updated successfully, but these errors were encountered: