Coder Social home page Coder Social logo

packtpublishing / mastering-distributed-tracing Goto Github PK

View Code? Open in Web Editor NEW
267.0 24.0 92.0 239 KB

"Mastering Distributed Tracing" by Yuri Shkuro, published by Packt

License: MIT License

Go 23.45% Java 53.95% Python 13.46% Makefile 2.42% JavaScript 5.35% HTML 0.43% Dockerfile 0.94%
examples distributed-tracing jaegertracing opentracing

mastering-distributed-tracing's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mastering-distributed-tracing's Issues

Querying for non-existing user causes NPE

...I couldn't get the first example from Chapter04 to run. If you curl for for a user that isn't in the database, you get a null pointer at Chapter04/java/src/main/java/exercise1/HelloController:36 because the title is null. Just initialise to "" in Person to fix it.

I was gonna submit a PR but Java 11 decided to stick needles in my eyes. Meh.

why do you use session window in the flink to process spans

Can I ask in this function why do you choose session window in the flink?It is better than time window? And how do we identify traceSessionWindow?

private static DataStream<Trace> aggregateSpansToTraces(DataStream<Span> spans) {
    return spans //
            .keyBy((KeySelector<Span, String>) span -> span.traceId)
            .window(ProcessingTimeSessionWindows.withGap(traceSessionWindow))
            .apply(new WindowFunction<Span, Trace, String, TimeWindow>() {
                @Override
                public void apply(String traceId, TimeWindow window, Iterable<Span> spans, Collector<Trace> out)
                        throws Exception {
                    List<Span> spanList = new ArrayList<>();
                    spans.forEach(spanList::add);

                    Trace trace = new Trace();
                    trace.traceId = traceId;
                    trace.spans = spanList;
                    out.collect(trace);
                }
            });
}

More examples: NodeJS, GO

Thanks for the great book, jaeger and this repo.
I just finished reading and went through all the examples, I'm coming from NodeJS, and for me it might be very helpful to see working nodejs examples.
As well there are some chapters that only java examples provide (chapter 11 for example).

I would like to contribute examples for nodejs for chapters 4, 11
And add go example for chapter 11,

WDYT?

dep ensure doesn't work

when i try dep ensure on mac terminal, it showed that
could not find project Gopkg.toml, use dep init to initiate a manifest

Chapter 11: logstash port 5000 conflicts with Docker Desktop for Mac

Hi, Trying out chapter 11. I hit an issue where port 5000 of the logstash docker container had a conflict with port 5000 used by docker for Mac. I updated the port to 6000, updated logback config files in all the services and seeing the logs in kibana. However figure 11.5 and the related table looks a bit different as shown below.

Screen Shot 2019-10-21 at 6 26 11 PM
Screen Shot 2019-10-21 at 6 26 03 PM

Is this a new format or some error related to the above change?

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.