-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathspan.rb
More file actions
40 lines (31 loc) · 659 Bytes
/
span.rb
File metadata and controls
40 lines (31 loc) · 659 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
module Span
attr_reader :span_context, :tracer, :parent_id
def context
@span_context
end
def finish(opts)
raise NotImplementedError
end
def set_operation_name(operationName)
raise NotImplementedError
end
def set_tag(k, v)
raise NotImplementedError
end
def set_baggage_item(k, v)
raise NotImplementedError
end
def baggage_item(k)
raise NotImplementedError
end
def log(kv_pairs, timestamp)
raise NotImplementedError
end
end
module SpanReference
attr_reader :referenced_context, :reference_type
def initialize(context, type)
@referenced_context = context
@reference_type = type
end
end