Giter VIP home page Giter VIP logo

Comments (4)

paprickar avatar paprickar commented on June 29, 2024

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.

from opentracing-javascript.

austinlparker avatar austinlparker commented on June 29, 2024

My 0.02 would be to use opentelemetry-web and proxy OTLP to jaeger via an OpenTelemetry Collector.

from opentracing-javascript.

gioragutt avatar gioragutt commented on June 29, 2024

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 🤦🏻‍♂️

from opentracing-javascript.

gioragutt avatar gioragutt commented on June 29, 2024

So, I'm not in front of source code, but I might as well share.

What I ended up doing was using zipkin-javascript-opentracing. The typing provided in @types is pretty awful, so I had to write my own in a .d.ts.

My goal is to write a library for angular, which would work with the built in HttpClient and the HttpInterceptor middleware infrastructure to make tracing automatic, and allow whatever means of customization needed.

Since I end up sending zipkin headers, I had to change my backend tracing library to accept zipkin headers.

I'm using Java, so it was pretty easy. All I had to do was make my initialization code use Configuration.fromEnv() to initialize the Tracer, and this in turn allowed me to use the JAEGER_PROPAGATION environment variable.

It took some time to get things to work, considering zipkin-javascript-opentracing doesn't follow the opentracing Tracer api completely, but things end up working... well, good enough.

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 zipkin-javascript-opentracing, but all the things I log end up becoming tags when viewed in the jaeger ui.


@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.

from opentracing-javascript.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.