Module: Quark::MdkTracing
- Defined in:
- lib/mdk_tracing.rb,
lib/mdk_tracing/api.rb,
lib/mdk_tracing/protocol.rb
Defined Under Namespace
Modules: Api, Protocol
Classes: FakeTracer, Tracer, TracingDestination
Class Method Summary
collapse
Class Method Details
.api ⇒ Object
6
|
# File 'lib/mdk_tracing/api.rb', line 6
def self.api; Api; end
|
.createLogEvent(ctx, procUUID, level, category, text) ⇒ Object
Construct a LogEvent and write to a tracer.
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# File 'lib/mdk_tracing.rb', line 59
def self.createLogEvent(ctx, procUUID, level, category, text)
ctx.tick()
evt = ::Quark.mdk_tracing.protocol.LogEvent.new()
(evt).context = ctx.copy()
(evt).timestamp = ::Quark.quark.now()
(evt).node = procUUID
(evt).level = level
(evt).category = category
(evt).contentType = "text/plain"
(evt).text = text
return evt
nil
end
|
.FakeTracer ⇒ Object
76
|
# File 'lib/mdk_tracing.rb', line 76
def self.FakeTracer; FakeTracer; end
|
.protocol ⇒ Object
6
|
# File 'lib/mdk_tracing/protocol.rb', line 6
def self.protocol; Protocol; end
|
.Tracer ⇒ Object
162
|
# File 'lib/mdk_tracing.rb', line 162
def self.Tracer; Tracer; end
|
.TracingDestination ⇒ Object
17
|
# File 'lib/mdk_tracing.rb', line 17
def self.TracingDestination; TracingDestination; end
|