zipkin_query 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +15 -0
- data/lib/zipkin_query/zipkin_core_constants.rb +19 -0
- data/lib/zipkin_query/zipkin_core_types.rb +117 -0
- data/lib/zipkin_query/zipkin_dependencies_constants.rb +11 -0
- data/lib/zipkin_query/zipkin_dependencies_types.rb +74 -0
- data/lib/zipkin_query/zipkin_query.rb +1219 -0
- data/lib/zipkin_query/zipkin_query_constants.rb +11 -0
- data/lib/zipkin_query/zipkin_query_types.rb +222 -0
- data/lib/zipkin_query.rb +10 -0
- metadata +80 -0
    
        checksums.yaml
    ADDED
    
    | @@ -0,0 +1,15 @@ | |
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            !binary "U0hBMQ==":
         | 
| 3 | 
            +
              metadata.gz: !binary |-
         | 
| 4 | 
            +
                MjI0YjFmNmMyNWEzMDBiODJkNDU2ZDMxNTk5NzY1OWUxY2U0Mzc2NA==
         | 
| 5 | 
            +
              data.tar.gz: !binary |-
         | 
| 6 | 
            +
                ZTAyZjc3MzE3ZjdkODVhZGY4MDNhYWIzN2ZhNDdiOTM1ZTgyMjE0MA==
         | 
| 7 | 
            +
            SHA512:
         | 
| 8 | 
            +
              metadata.gz: !binary |-
         | 
| 9 | 
            +
                YzFhYzY4ZTBhYjY3NDA5Y2E4ODBjOWUzNjdkNmMyZDYxNjk0N2NhOTlkYjk3
         | 
| 10 | 
            +
                YTcxZWE3MWJhOTJjNDg4Mjk5NzQ0ODQwMjMwYzQwYTBiNGNjNWQ0NjJkZjlj
         | 
| 11 | 
            +
                OGYwMjYwMGM5ZGQyNWQzYjYzYzIxNDIzMWY5Yzg5MGM2MGFmYzM=
         | 
| 12 | 
            +
              data.tar.gz: !binary |-
         | 
| 13 | 
            +
                NTUzMDVjNjU5YzA5YWIyNzY4NDBlNGVhMjJmNzI4MDE3ZmQ2Nzk4NDM4MGUx
         | 
| 14 | 
            +
                M2NjMGE3ZWNhNjkzYjkyOWZlZWJkOWU4OTZjOTFiZmM5Yjk5YTJiYjQ0MjEy
         | 
| 15 | 
            +
                MWMyN2M0OGQ2ZDBjYzg1Mzc0NjA4NTc2ZWFlOGVmZTExMDhhN2I=
         | 
| @@ -0,0 +1,19 @@ | |
| 1 | 
            +
            #
         | 
| 2 | 
            +
            # Autogenerated by Thrift Compiler (0.9.1)
         | 
| 3 | 
            +
            #
         | 
| 4 | 
            +
            # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
         | 
| 5 | 
            +
            #
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            require 'thrift'
         | 
| 8 | 
            +
            require 'zipkin_query/zipkin_core_types'
         | 
| 9 | 
            +
             | 
| 10 | 
            +
            module Zipkin
         | 
| 11 | 
            +
              CLIENT_SEND = %q"cs"
         | 
| 12 | 
            +
             | 
| 13 | 
            +
              CLIENT_RECV = %q"cr"
         | 
| 14 | 
            +
             | 
| 15 | 
            +
              SERVER_SEND = %q"ss"
         | 
| 16 | 
            +
             | 
| 17 | 
            +
              SERVER_RECV = %q"sr"
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            end
         | 
| @@ -0,0 +1,117 @@ | |
| 1 | 
            +
            #
         | 
| 2 | 
            +
            # Autogenerated by Thrift Compiler (0.9.1)
         | 
| 3 | 
            +
            #
         | 
| 4 | 
            +
            # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
         | 
| 5 | 
            +
            #
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            require 'thrift'
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            module Zipkin
         | 
| 10 | 
            +
              module AnnotationType
         | 
| 11 | 
            +
                BOOL = 0
         | 
| 12 | 
            +
                BYTES = 1
         | 
| 13 | 
            +
                I16 = 2
         | 
| 14 | 
            +
                I32 = 3
         | 
| 15 | 
            +
                I64 = 4
         | 
| 16 | 
            +
                DOUBLE = 5
         | 
| 17 | 
            +
                STRING = 6
         | 
| 18 | 
            +
                VALUE_MAP = {0 => "BOOL", 1 => "BYTES", 2 => "I16", 3 => "I32", 4 => "I64", 5 => "DOUBLE", 6 => "STRING"}
         | 
| 19 | 
            +
                VALID_VALUES = Set.new([BOOL, BYTES, I16, I32, I64, DOUBLE, STRING]).freeze
         | 
| 20 | 
            +
              end
         | 
| 21 | 
            +
             | 
| 22 | 
            +
              class Endpoint
         | 
| 23 | 
            +
                include ::Thrift::Struct, ::Thrift::Struct_Union
         | 
| 24 | 
            +
                IPV4 = 1
         | 
| 25 | 
            +
                PORT = 2
         | 
| 26 | 
            +
                SERVICE_NAME = 3
         | 
| 27 | 
            +
             | 
| 28 | 
            +
                FIELDS = {
         | 
| 29 | 
            +
                  IPV4 => {:type => ::Thrift::Types::I32, :name => 'ipv4'},
         | 
| 30 | 
            +
                  PORT => {:type => ::Thrift::Types::I16, :name => 'port'},
         | 
| 31 | 
            +
                  SERVICE_NAME => {:type => ::Thrift::Types::STRING, :name => 'service_name'}
         | 
| 32 | 
            +
                }
         | 
| 33 | 
            +
             | 
| 34 | 
            +
                def struct_fields; FIELDS; end
         | 
| 35 | 
            +
             | 
| 36 | 
            +
                def validate
         | 
| 37 | 
            +
                end
         | 
| 38 | 
            +
             | 
| 39 | 
            +
                ::Thrift::Struct.generate_accessors self
         | 
| 40 | 
            +
              end
         | 
| 41 | 
            +
             | 
| 42 | 
            +
              class Annotation
         | 
| 43 | 
            +
                include ::Thrift::Struct, ::Thrift::Struct_Union
         | 
| 44 | 
            +
                TIMESTAMP = 1
         | 
| 45 | 
            +
                VALUE = 2
         | 
| 46 | 
            +
                HOST = 3
         | 
| 47 | 
            +
                DURATION = 4
         | 
| 48 | 
            +
             | 
| 49 | 
            +
                FIELDS = {
         | 
| 50 | 
            +
                  TIMESTAMP => {:type => ::Thrift::Types::I64, :name => 'timestamp'},
         | 
| 51 | 
            +
                  VALUE => {:type => ::Thrift::Types::STRING, :name => 'value'},
         | 
| 52 | 
            +
                  HOST => {:type => ::Thrift::Types::STRUCT, :name => 'host', :class => ::Zipkin::Endpoint, :optional => true},
         | 
| 53 | 
            +
                  DURATION => {:type => ::Thrift::Types::I32, :name => 'duration', :optional => true}
         | 
| 54 | 
            +
                }
         | 
| 55 | 
            +
             | 
| 56 | 
            +
                def struct_fields; FIELDS; end
         | 
| 57 | 
            +
             | 
| 58 | 
            +
                def validate
         | 
| 59 | 
            +
                end
         | 
| 60 | 
            +
             | 
| 61 | 
            +
                ::Thrift::Struct.generate_accessors self
         | 
| 62 | 
            +
              end
         | 
| 63 | 
            +
             | 
| 64 | 
            +
              class BinaryAnnotation
         | 
| 65 | 
            +
                include ::Thrift::Struct, ::Thrift::Struct_Union
         | 
| 66 | 
            +
                KEY = 1
         | 
| 67 | 
            +
                VALUE = 2
         | 
| 68 | 
            +
                ANNOTATION_TYPE = 3
         | 
| 69 | 
            +
                HOST = 4
         | 
| 70 | 
            +
             | 
| 71 | 
            +
                FIELDS = {
         | 
| 72 | 
            +
                  KEY => {:type => ::Thrift::Types::STRING, :name => 'key'},
         | 
| 73 | 
            +
                  VALUE => {:type => ::Thrift::Types::STRING, :name => 'value', :binary => true},
         | 
| 74 | 
            +
                  ANNOTATION_TYPE => {:type => ::Thrift::Types::I32, :name => 'annotation_type', :enum_class => ::Zipkin::AnnotationType},
         | 
| 75 | 
            +
                  HOST => {:type => ::Thrift::Types::STRUCT, :name => 'host', :class => ::Zipkin::Endpoint, :optional => true}
         | 
| 76 | 
            +
                }
         | 
| 77 | 
            +
             | 
| 78 | 
            +
                def struct_fields; FIELDS; end
         | 
| 79 | 
            +
             | 
| 80 | 
            +
                def validate
         | 
| 81 | 
            +
                  unless @annotation_type.nil? || ::Zipkin::AnnotationType::VALID_VALUES.include?(@annotation_type)
         | 
| 82 | 
            +
                    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field annotation_type!')
         | 
| 83 | 
            +
                  end
         | 
| 84 | 
            +
                end
         | 
| 85 | 
            +
             | 
| 86 | 
            +
                ::Thrift::Struct.generate_accessors self
         | 
| 87 | 
            +
              end
         | 
| 88 | 
            +
             | 
| 89 | 
            +
              class Span
         | 
| 90 | 
            +
                include ::Thrift::Struct, ::Thrift::Struct_Union
         | 
| 91 | 
            +
                TRACE_ID = 1
         | 
| 92 | 
            +
                NAME = 3
         | 
| 93 | 
            +
                ID = 4
         | 
| 94 | 
            +
                PARENT_ID = 5
         | 
| 95 | 
            +
                ANNOTATIONS = 6
         | 
| 96 | 
            +
                BINARY_ANNOTATIONS = 8
         | 
| 97 | 
            +
                DEBUG = 9
         | 
| 98 | 
            +
             | 
| 99 | 
            +
                FIELDS = {
         | 
| 100 | 
            +
                  TRACE_ID => {:type => ::Thrift::Types::I64, :name => 'trace_id'},
         | 
| 101 | 
            +
                  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
         | 
| 102 | 
            +
                  ID => {:type => ::Thrift::Types::I64, :name => 'id'},
         | 
| 103 | 
            +
                  PARENT_ID => {:type => ::Thrift::Types::I64, :name => 'parent_id', :optional => true},
         | 
| 104 | 
            +
                  ANNOTATIONS => {:type => ::Thrift::Types::LIST, :name => 'annotations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Zipkin::Annotation}},
         | 
| 105 | 
            +
                  BINARY_ANNOTATIONS => {:type => ::Thrift::Types::LIST, :name => 'binary_annotations', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Zipkin::BinaryAnnotation}},
         | 
| 106 | 
            +
                  DEBUG => {:type => ::Thrift::Types::BOOL, :name => 'debug', :default => false, :optional => true}
         | 
| 107 | 
            +
                }
         | 
| 108 | 
            +
             | 
| 109 | 
            +
                def struct_fields; FIELDS; end
         | 
| 110 | 
            +
             | 
| 111 | 
            +
                def validate
         | 
| 112 | 
            +
                end
         | 
| 113 | 
            +
             | 
| 114 | 
            +
                ::Thrift::Struct.generate_accessors self
         | 
| 115 | 
            +
              end
         | 
| 116 | 
            +
             | 
| 117 | 
            +
            end
         | 
| @@ -0,0 +1,74 @@ | |
| 1 | 
            +
            #
         | 
| 2 | 
            +
            # Autogenerated by Thrift Compiler (0.9.1)
         | 
| 3 | 
            +
            #
         | 
| 4 | 
            +
            # DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
         | 
| 5 | 
            +
            #
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            require 'thrift'
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            module Zipkin
         | 
| 10 | 
            +
              class Moments
         | 
| 11 | 
            +
                include ::Thrift::Struct, ::Thrift::Struct_Union
         | 
| 12 | 
            +
                M0 = 1
         | 
| 13 | 
            +
                M1 = 2
         | 
| 14 | 
            +
                M2 = 3
         | 
| 15 | 
            +
                M3 = 4
         | 
| 16 | 
            +
                M4 = 5
         | 
| 17 | 
            +
             | 
| 18 | 
            +
                FIELDS = {
         | 
| 19 | 
            +
                  M0 => {:type => ::Thrift::Types::I64, :name => 'm0'},
         | 
| 20 | 
            +
                  M1 => {:type => ::Thrift::Types::DOUBLE, :name => 'm1'},
         | 
| 21 | 
            +
                  M2 => {:type => ::Thrift::Types::DOUBLE, :name => 'm2'},
         | 
| 22 | 
            +
                  M3 => {:type => ::Thrift::Types::DOUBLE, :name => 'm3'},
         | 
| 23 | 
            +
                  M4 => {:type => ::Thrift::Types::DOUBLE, :name => 'm4'}
         | 
| 24 | 
            +
                }
         | 
| 25 | 
            +
             | 
| 26 | 
            +
                def struct_fields; FIELDS; end
         | 
| 27 | 
            +
             | 
| 28 | 
            +
                def validate
         | 
| 29 | 
            +
                end
         | 
| 30 | 
            +
             | 
| 31 | 
            +
                ::Thrift::Struct.generate_accessors self
         | 
| 32 | 
            +
              end
         | 
| 33 | 
            +
             | 
| 34 | 
            +
              class DependencyLink
         | 
| 35 | 
            +
                include ::Thrift::Struct, ::Thrift::Struct_Union
         | 
| 36 | 
            +
                PARENT = 1
         | 
| 37 | 
            +
                CHILD = 2
         | 
| 38 | 
            +
                DURATION_MOMENTS = 3
         | 
| 39 | 
            +
             | 
| 40 | 
            +
                FIELDS = {
         | 
| 41 | 
            +
                  PARENT => {:type => ::Thrift::Types::STRING, :name => 'parent'},
         | 
| 42 | 
            +
                  CHILD => {:type => ::Thrift::Types::STRING, :name => 'child'},
         | 
| 43 | 
            +
                  DURATION_MOMENTS => {:type => ::Thrift::Types::STRUCT, :name => 'duration_moments', :class => ::Zipkin::Moments}
         | 
| 44 | 
            +
                }
         | 
| 45 | 
            +
             | 
| 46 | 
            +
                def struct_fields; FIELDS; end
         | 
| 47 | 
            +
             | 
| 48 | 
            +
                def validate
         | 
| 49 | 
            +
                end
         | 
| 50 | 
            +
             | 
| 51 | 
            +
                ::Thrift::Struct.generate_accessors self
         | 
| 52 | 
            +
              end
         | 
| 53 | 
            +
             | 
| 54 | 
            +
              class Dependencies
         | 
| 55 | 
            +
                include ::Thrift::Struct, ::Thrift::Struct_Union
         | 
| 56 | 
            +
                START_TIME = 1
         | 
| 57 | 
            +
                END_TIME = 2
         | 
| 58 | 
            +
                LINKS = 3
         | 
| 59 | 
            +
             | 
| 60 | 
            +
                FIELDS = {
         | 
| 61 | 
            +
                  START_TIME => {:type => ::Thrift::Types::I64, :name => 'start_time'},
         | 
| 62 | 
            +
                  END_TIME => {:type => ::Thrift::Types::I64, :name => 'end_time'},
         | 
| 63 | 
            +
                  LINKS => {:type => ::Thrift::Types::LIST, :name => 'links', :element => {:type => ::Thrift::Types::STRUCT, :class => ::Zipkin::DependencyLink}}
         | 
| 64 | 
            +
                }
         | 
| 65 | 
            +
             | 
| 66 | 
            +
                def struct_fields; FIELDS; end
         | 
| 67 | 
            +
             | 
| 68 | 
            +
                def validate
         | 
| 69 | 
            +
                end
         | 
| 70 | 
            +
             | 
| 71 | 
            +
                ::Thrift::Struct.generate_accessors self
         | 
| 72 | 
            +
              end
         | 
| 73 | 
            +
             | 
| 74 | 
            +
            end
         |