forked from temporalio/sdk-ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathopen_telemetry_test.rbs
More file actions
45 lines (40 loc) · 1.36 KB
/
open_telemetry_test.rbs
File metadata and controls
45 lines (40 loc) · 1.36 KB
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
41
42
43
44
45
module Contrib
class OpenTelemetryTest < Test
def init_tracer_and_exporter: -> [untyped, untyped]
def trace: (
?tracer_and_exporter: [untyped, untyped],
?always_create_workflow_spans: bool,
?check_root: bool
) { (Temporalio::Client) -> void } -> untyped
def trace_workflow: (
Symbol scenario,
?tracer_and_exporter: [untyped, untyped],
?start_with_untraced_client: bool,
?always_create_workflow_spans: bool,
?check_root: bool
) { (Temporalio::Client::WorkflowHandle) -> void } -> untyped
class ExpectedSpan
def self.from_span_data: (untyped all_spans) -> Array[ExpectedSpan]
attr_reader name: String
attr_reader children: Array[ExpectedSpan]
attr_reader attributes: Hash[untyped, untyped]
attr_reader links: Array[ExpectedSpan]
attr_reader exception_message: String?
def initialize: (
name: String,
?children: Array[ExpectedSpan],
?attributes: Hash[untyped, untyped],
?links: Array[ExpectedSpan],
?exception_message: String?
) -> void
def add_child: (
name: String,
?attributes: Hash[untyped, untyped],
?links: Array[ExpectedSpan],
?exception_message: String?,
?insert_at: Integer?
) -> ExpectedSpan
def to_s_indented: (?indent: String) -> String
end
end
end