zipkin-query 0.0.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,5 +12,5 @@
12
12
  # See the License for the specific language governing permissions and
13
13
  # limitations under the License.
14
14
  module ZipkinQuery
15
- VERSION = "0.0.3"
15
+ VERSION = "0.1.0"
16
16
  end
@@ -60,6 +60,22 @@ require 'zipkin_query_types'
60
60
  raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'getTraceIdsByAnnotation failed: unknown result')
61
61
  end
62
62
 
63
+ def tracesExist(trace_ids)
64
+ send_tracesExist(trace_ids)
65
+ return recv_tracesExist()
66
+ end
67
+
68
+ def send_tracesExist(trace_ids)
69
+ send_message('tracesExist', TracesExist_args, :trace_ids => trace_ids)
70
+ end
71
+
72
+ def recv_tracesExist()
73
+ result = receive_message(TracesExist_result)
74
+ return result.success unless result.success.nil?
75
+ raise result.qe unless result.qe.nil?
76
+ raise ::Thrift::ApplicationException.new(::Thrift::ApplicationException::MISSING_RESULT, 'tracesExist failed: unknown result')
77
+ end
78
+
63
79
  def getTracesByIds(trace_ids, adjust)
64
80
  send_getTracesByIds(trace_ids, adjust)
65
81
  return recv_getTracesByIds()
@@ -273,6 +289,17 @@ require 'zipkin_query_types'
273
289
  write_result(result, oprot, 'getTraceIdsByAnnotation', seqid)
274
290
  end
275
291
 
292
+ def process_tracesExist(seqid, iprot, oprot)
293
+ args = read_args(iprot, TracesExist_args)
294
+ result = TracesExist_result.new()
295
+ begin
296
+ result.success = @handler.tracesExist(args.trace_ids)
297
+ rescue Zipkin::QueryException => qe
298
+ result.qe = qe
299
+ end
300
+ write_result(result, oprot, 'tracesExist', seqid)
301
+ end
302
+
276
303
  def process_getTracesByIds(seqid, iprot, oprot)
277
304
  args = read_args(iprot, GetTracesByIds_args)
278
305
  result = GetTracesByIds_result.new()
@@ -533,6 +560,40 @@ require 'zipkin_query_types'
533
560
  ::Thrift::Struct.generate_accessors self
534
561
  end
535
562
 
563
+ class TracesExist_args
564
+ include ::Thrift::Struct, ::Thrift::Struct_Union
565
+ TRACE_IDS = 1
566
+
567
+ FIELDS = {
568
+ TRACE_IDS => {:type => ::Thrift::Types::LIST, :name => 'trace_ids', :element => {:type => ::Thrift::Types::I64}}
569
+ }
570
+
571
+ def struct_fields; FIELDS; end
572
+
573
+ def validate
574
+ end
575
+
576
+ ::Thrift::Struct.generate_accessors self
577
+ end
578
+
579
+ class TracesExist_result
580
+ include ::Thrift::Struct, ::Thrift::Struct_Union
581
+ SUCCESS = 0
582
+ QE = 1
583
+
584
+ FIELDS = {
585
+ SUCCESS => {:type => ::Thrift::Types::SET, :name => 'success', :element => {:type => ::Thrift::Types::I64}},
586
+ QE => {:type => ::Thrift::Types::STRUCT, :name => 'qe', :class => Zipkin::QueryException}
587
+ }
588
+
589
+ def struct_fields; FIELDS; end
590
+
591
+ def validate
592
+ end
593
+
594
+ ::Thrift::Struct.generate_accessors self
595
+ end
596
+
536
597
  class GetTracesByIds_args
537
598
  include ::Thrift::Struct, ::Thrift::Struct_Union
538
599
  TRACE_IDS = 1
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zipkin-query
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 3
10
- version: 0.0.3
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Franklin Hu
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-06-26 00:00:00 Z
18
+ date: 2012-08-09 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: thrift
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  requirements: []
85
85
 
86
86
  rubyforge_project:
87
- rubygems_version: 1.8.15
87
+ rubygems_version: 1.8.24
88
88
  signing_key:
89
89
  specification_version: 3
90
90
  summary: Zipkin Query client