Advertisement
Guest User

Untitled

a guest
Jan 24th, 2020
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.51 KB | None | 0 0
  1. with tls as
  2.   (select
  3.      spanid,
  4.      traceid
  5.    from
  6.      zipkin.zipkin_flat_annotation
  7.    where
  8.      ds = '2020-01-23'
  9.      and endpoint.servicenamejob = 'gizmoduck')
  10. select
  11.   tfeuri,
  12.   count(DISTINCT(spanid)) as num_rpc,
  13.   count(DISTINCT(t1.traceid)) as num_traces
  14. from
  15.   zipkin.zipkin_trace_index t1
  16.     join tls t2 on t1.traceid = t2.traceid
  17. where
  18.     t1.ds = '2020-01-23'
  19.     and tfehost = 'api.twitter.com'
  20.     and isprodonly = true
  21. group by
  22.   tfeuri
  23. order by
  24.   num_traces desc
  25. limit 4
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement