Class: RubyZipkin::Scriber
- Inherits:
-
Object
- Object
- RubyZipkin::Scriber
show all
- Defined in:
- lib/rubyzipkin/scriber.rb
Instance Method Summary
collapse
Constructor Details
#initialize(scribe) ⇒ Scriber
Returns a new instance of Scriber.
19
20
21
|
# File 'lib/rubyzipkin/scriber.rb', line 19
def initialize(scribe)
@scribe = scribe
end
|
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
33
34
35
|
# File 'lib/rubyzipkin/scriber.rb', line 33
def method_missing(name, *args)
@scribe.send(name, *args)
end
|
Instance Method Details
#batch(&block) ⇒ Object
28
29
30
31
|
# File 'lib/rubyzipkin/scriber.rb', line 28
def batch(&block)
@scribe.batch(&block)
rescue ThriftClient::NoServersAvailable, Thrift::Exception
end
|
#log(*args) ⇒ Object
23
24
25
26
|
# File 'lib/rubyzipkin/scriber.rb', line 23
def log(*args)
@scribe.log(*args)
rescue ThriftClient::NoServersAvailable, Thrift::Exception
end
|