Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Rubyで試すZipkin

nomlab
February 29, 2020

 Rubyで試すZipkin

nomlab

February 29, 2020
Tweet

More Decks by nomlab

Other Decks in Programming

Transcript

  1. No.3 @DF=E;=>?B =>?B0+65C:9>@7$#,5=>?B H I =>?B2G1.1C:9>@*!<FA>73-)0 !1<FA>0+65=>?B ( (1) =>?B11*'

    @DF=E;=>?B7)/G <FA>1%4<FA> 1D8?E=7 " ( (2) &4D8?E=1G 1<FA>1 *'
  2. No.4 Zipkin (1) Twitter ,OSS  &)+!*!"$( (2) Google 

    Dapper  - . (1)  +'"API %+# (2) %+#UI 
  3. No.20  (1) Web  HTTP  (2) Zipkin 

    Web1 localhost:8081 Web2 localhost:8082 Web3 localhost:9000  Zipkin localhost:9411
  4. No.21  (1) Web  (2) HTTP   (3)

    Zipkin   (Trace ID   ) (4) Zipkin   Web1 localhost:8081 Web2 localhost:8082 Web3 localhost:9000  Zipkin localhost:9411
  5. No.22  (1) Web  (2) HTTP   (3)

    Zipkin   (Trace ID   ) (4) Zipkin   Web1 localhost:8081 Web2 localhost:8082 Web3 localhost:9000  Zipkin localhost:9411
  6. No.24  (1) Web  (2) HTTP   (3)

    Zipkin   (Trace ID   ) (4) Zipkin   Web1 localhost:8081 Web2 localhost:8082 Web3 localhost:9000  Zipkin localhost:9411
  7. No.25 (2) HTTP   (1) Faraday: HTTP  

    (2)  HTTP  (3) localhost:9000/api GET 
  8. No.26  (1) Web  (2) HTTP   (3)

    Zipkin   (Trace ID   ) (4) Zipkin   Web1 localhost:8081 Web2 localhost:8082 Web3 localhost:9000  Zipkin localhost:9411
  9. No.28 Rack (1/2) (1) Web Web    

    (2) gem () Rails, Sinatra, Faraday sinatra rails Faraday rack middleware handler
  10. No.29 Rack (2/2) sinatra rails Faraday rack middleware handler RackA:F)*(

    call# " '&-D3 HTTPE-+39##  ' Rack;H:D "Web0I<' &-D3 Rack(>E.I1CH callB47:'$&,=2*-9 httpE-+39?76! '%Hash' JKMML#38I53 /I:JG3@H3?76JG3@H3body'B47:
  11. No.33  (1) Web  Web1 Web2 Web3  Zipkin

    (2) HTTP   (3) Zipkin   (Trace ID   ) (4) Zipkin  
  12. No.34 (4) Zipkin  (1) Docker (2) Java $ curl

    -sSL https://zipkin.io/quickstart.sh | bash -s $ java -jar zipkin.jar (3) Running from source # get the latest source $ git clone https://github.com/openzipkin/zipkin cd zipkin # Build the server and also make its dependencies $ ./mvnw -DskipTests --also-make -pl zipkin-server clean install # Run the server $ java -jar ./zipkin-server/target/zipkin-server-*exec.jar $ docker run –d –p 9411:9411 openzipkin/zipkin
  13. No.36  (1) OpenZipkin &middot; A distributed tracing system, https://zipkin.io/

    '  (2) zipkin, https://github.com/openzipkin/zipkin (3)  "$&% !#Zipkin, https://qiita.com/miya10kei/items/2532b80fcd8d19eb2e75 (4) Rack' https://qiita.com/k0kubun/items/248395f68164b52aec4a (5) zipkin-ruby-example, https://github.com/openzipkin/zipkin-ruby-example