google-cloud-trace 0.38.3 → 0.41.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/CHANGELOG.md +49 -0
- data/CONTRIBUTING.md +4 -5
- data/LOGGING.md +1 -1
- data/OVERVIEW.md +1 -2
- data/lib/google-cloud-trace.rb +20 -12
- data/lib/google/cloud/trace.rb +18 -14
- data/lib/google/cloud/trace/async_reporter.rb +7 -6
- data/lib/google/cloud/trace/credentials.rb +2 -2
- data/lib/google/cloud/trace/errors.rb +2 -2
- data/lib/google/cloud/trace/faraday_middleware.rb +5 -7
- data/lib/google/cloud/trace/label_key.rb +1 -1
- data/lib/google/cloud/trace/middleware.rb +7 -8
- data/lib/google/cloud/trace/notifications.rb +13 -14
- data/lib/google/cloud/trace/patches/active_call_with_trace.rb +2 -2
- data/lib/google/cloud/trace/patches/call_with_trace.rb +2 -2
- data/lib/google/cloud/trace/rails.rb +2 -2
- data/lib/google/cloud/trace/result_set.rb +20 -12
- data/lib/google/cloud/trace/service.rb +37 -60
- data/lib/google/cloud/trace/span.rb +7 -7
- data/lib/google/cloud/trace/trace_record.rb +4 -5
- data/lib/google/cloud/trace/utils.rb +1 -1
- data/lib/google/cloud/trace/version.rb +1 -1
- metadata +23 -72
- data/lib/google/cloud/trace/v1.rb +0 -16
- data/lib/google/cloud/trace/v1/credentials.rb +0 -39
- data/lib/google/cloud/trace/v1/doc/google/devtools/cloudtrace/v1/trace.rb +0 -253
- data/lib/google/cloud/trace/v1/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/trace/v1/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/trace/v1/trace_service_client.rb +0 -425
- data/lib/google/cloud/trace/v1/trace_service_client_config.json +0 -41
- data/lib/google/cloud/trace/v2.rb +0 -123
- data/lib/google/cloud/trace/v2/credentials.rb +0 -39
- data/lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/trace.rb +0 -321
- data/lib/google/cloud/trace/v2/doc/google/devtools/cloudtrace/v2/tracing.rb +0 -33
- data/lib/google/cloud/trace/v2/doc/google/protobuf/any.rb +0 -131
- data/lib/google/cloud/trace/v2/doc/google/protobuf/empty.rb +0 -29
- data/lib/google/cloud/trace/v2/doc/google/protobuf/timestamp.rb +0 -113
- data/lib/google/cloud/trace/v2/doc/google/protobuf/wrappers.rb +0 -34
- data/lib/google/cloud/trace/v2/doc/google/rpc/status.rb +0 -39
- data/lib/google/cloud/trace/v2/trace_service_client.rb +0 -412
- data/lib/google/cloud/trace/v2/trace_service_client_config.json +0 -36
- data/lib/google/devtools/cloudtrace/v1/trace_pb.rb +0 -82
- data/lib/google/devtools/cloudtrace/v1/trace_services_pb.rb +0 -58
- data/lib/google/devtools/cloudtrace/v2/trace_pb.rb +0 -132
- data/lib/google/devtools/cloudtrace/v2/tracing_pb.rb +0 -29
- data/lib/google/devtools/cloudtrace/v2/tracing_services_pb.rb +0 -54
@@ -1,36 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"interfaces": {
|
3
|
-
"google.devtools.cloudtrace.v2.TraceService": {
|
4
|
-
"retry_codes": {
|
5
|
-
"idempotent": [
|
6
|
-
"DEADLINE_EXCEEDED",
|
7
|
-
"UNAVAILABLE"
|
8
|
-
],
|
9
|
-
"non_idempotent": []
|
10
|
-
},
|
11
|
-
"retry_params": {
|
12
|
-
"default": {
|
13
|
-
"initial_retry_delay_millis": 100,
|
14
|
-
"retry_delay_multiplier": 1.2,
|
15
|
-
"max_retry_delay_millis": 1000,
|
16
|
-
"initial_rpc_timeout_millis": 30000,
|
17
|
-
"rpc_timeout_multiplier": 1.5,
|
18
|
-
"max_rpc_timeout_millis": 60000,
|
19
|
-
"total_timeout_millis": 120000
|
20
|
-
}
|
21
|
-
},
|
22
|
-
"methods": {
|
23
|
-
"CreateSpan": {
|
24
|
-
"timeout_millis": 60000,
|
25
|
-
"retry_codes_name": "idempotent",
|
26
|
-
"retry_params_name": "default"
|
27
|
-
},
|
28
|
-
"BatchWriteSpans": {
|
29
|
-
"timeout_millis": 60000,
|
30
|
-
"retry_codes_name": "non_idempotent",
|
31
|
-
"retry_params_name": "default"
|
32
|
-
}
|
33
|
-
}
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|
@@ -1,82 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/devtools/cloudtrace/v1/trace.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/api/client_pb'
|
9
|
-
require 'google/api/field_behavior_pb'
|
10
|
-
require 'google/api/resource_pb'
|
11
|
-
require 'google/protobuf/empty_pb'
|
12
|
-
require 'google/protobuf/timestamp_pb'
|
13
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
-
add_message "google.devtools.cloudtrace.v1.Trace" do
|
15
|
-
optional :project_id, :string, 1
|
16
|
-
optional :trace_id, :string, 2
|
17
|
-
repeated :spans, :message, 3, "google.devtools.cloudtrace.v1.TraceSpan"
|
18
|
-
end
|
19
|
-
add_message "google.devtools.cloudtrace.v1.Traces" do
|
20
|
-
repeated :traces, :message, 1, "google.devtools.cloudtrace.v1.Trace"
|
21
|
-
end
|
22
|
-
add_message "google.devtools.cloudtrace.v1.TraceSpan" do
|
23
|
-
optional :span_id, :fixed64, 1
|
24
|
-
optional :kind, :enum, 2, "google.devtools.cloudtrace.v1.TraceSpan.SpanKind"
|
25
|
-
optional :name, :string, 3
|
26
|
-
optional :start_time, :message, 4, "google.protobuf.Timestamp"
|
27
|
-
optional :end_time, :message, 5, "google.protobuf.Timestamp"
|
28
|
-
optional :parent_span_id, :fixed64, 6
|
29
|
-
map :labels, :string, :string, 7
|
30
|
-
end
|
31
|
-
add_enum "google.devtools.cloudtrace.v1.TraceSpan.SpanKind" do
|
32
|
-
value :SPAN_KIND_UNSPECIFIED, 0
|
33
|
-
value :RPC_SERVER, 1
|
34
|
-
value :RPC_CLIENT, 2
|
35
|
-
end
|
36
|
-
add_message "google.devtools.cloudtrace.v1.ListTracesRequest" do
|
37
|
-
optional :project_id, :string, 1
|
38
|
-
optional :view, :enum, 2, "google.devtools.cloudtrace.v1.ListTracesRequest.ViewType"
|
39
|
-
optional :page_size, :int32, 3
|
40
|
-
optional :page_token, :string, 4
|
41
|
-
optional :start_time, :message, 5, "google.protobuf.Timestamp"
|
42
|
-
optional :end_time, :message, 6, "google.protobuf.Timestamp"
|
43
|
-
optional :filter, :string, 7
|
44
|
-
optional :order_by, :string, 8
|
45
|
-
end
|
46
|
-
add_enum "google.devtools.cloudtrace.v1.ListTracesRequest.ViewType" do
|
47
|
-
value :VIEW_TYPE_UNSPECIFIED, 0
|
48
|
-
value :MINIMAL, 1
|
49
|
-
value :ROOTSPAN, 2
|
50
|
-
value :COMPLETE, 3
|
51
|
-
end
|
52
|
-
add_message "google.devtools.cloudtrace.v1.ListTracesResponse" do
|
53
|
-
repeated :traces, :message, 1, "google.devtools.cloudtrace.v1.Trace"
|
54
|
-
optional :next_page_token, :string, 2
|
55
|
-
end
|
56
|
-
add_message "google.devtools.cloudtrace.v1.GetTraceRequest" do
|
57
|
-
optional :project_id, :string, 1
|
58
|
-
optional :trace_id, :string, 2
|
59
|
-
end
|
60
|
-
add_message "google.devtools.cloudtrace.v1.PatchTracesRequest" do
|
61
|
-
optional :project_id, :string, 1
|
62
|
-
optional :traces, :message, 2, "google.devtools.cloudtrace.v1.Traces"
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
module Google
|
67
|
-
module Devtools
|
68
|
-
module Cloudtrace
|
69
|
-
module V1
|
70
|
-
Trace = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v1.Trace").msgclass
|
71
|
-
Traces = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v1.Traces").msgclass
|
72
|
-
TraceSpan = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v1.TraceSpan").msgclass
|
73
|
-
TraceSpan::SpanKind = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v1.TraceSpan.SpanKind").enummodule
|
74
|
-
ListTracesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v1.ListTracesRequest").msgclass
|
75
|
-
ListTracesRequest::ViewType = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v1.ListTracesRequest.ViewType").enummodule
|
76
|
-
ListTracesResponse = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v1.ListTracesResponse").msgclass
|
77
|
-
GetTraceRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v1.GetTraceRequest").msgclass
|
78
|
-
PatchTracesRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v1.PatchTracesRequest").msgclass
|
79
|
-
end
|
80
|
-
end
|
81
|
-
end
|
82
|
-
end
|
@@ -1,58 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/devtools/cloudtrace/v1/trace.proto for package 'google.devtools.cloudtrace.v1'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2019 Google LLC.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
|
19
|
-
|
20
|
-
require 'grpc'
|
21
|
-
require 'google/devtools/cloudtrace/v1/trace_pb'
|
22
|
-
|
23
|
-
module Google
|
24
|
-
module Devtools
|
25
|
-
module Cloudtrace
|
26
|
-
module V1
|
27
|
-
module TraceService
|
28
|
-
# This file describes an API for collecting and viewing traces and spans
|
29
|
-
# within a trace. A Trace is a collection of spans corresponding to a single
|
30
|
-
# operation or set of operations for an application. A span is an individual
|
31
|
-
# timed event which forms a node of the trace tree. Spans for a single trace
|
32
|
-
# may span multiple services.
|
33
|
-
class Service
|
34
|
-
|
35
|
-
include GRPC::GenericService
|
36
|
-
|
37
|
-
self.marshal_class_method = :encode
|
38
|
-
self.unmarshal_class_method = :decode
|
39
|
-
self.service_name = 'google.devtools.cloudtrace.v1.TraceService'
|
40
|
-
|
41
|
-
# Returns of a list of traces that match the specified filter conditions.
|
42
|
-
rpc :ListTraces, ListTracesRequest, ListTracesResponse
|
43
|
-
# Gets a single trace by its ID.
|
44
|
-
rpc :GetTrace, GetTraceRequest, Trace
|
45
|
-
# Sends new traces to Stackdriver Trace or updates existing traces. If the ID
|
46
|
-
# of a trace that you send matches that of an existing trace, any fields
|
47
|
-
# in the existing trace and its spans are overwritten by the provided values,
|
48
|
-
# and any new fields provided are merged with the existing trace data. If the
|
49
|
-
# ID does not match, a new trace is created.
|
50
|
-
rpc :PatchTraces, PatchTracesRequest, Google::Protobuf::Empty
|
51
|
-
end
|
52
|
-
|
53
|
-
Stub = Service.rpc_stub_class
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
@@ -1,132 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/devtools/cloudtrace/v2/trace.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/api/field_behavior_pb'
|
9
|
-
require 'google/api/resource_pb'
|
10
|
-
require 'google/protobuf/timestamp_pb'
|
11
|
-
require 'google/protobuf/wrappers_pb'
|
12
|
-
require 'google/rpc/status_pb'
|
13
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
14
|
-
add_message "google.devtools.cloudtrace.v2.Span" do
|
15
|
-
optional :name, :string, 1
|
16
|
-
optional :span_id, :string, 2
|
17
|
-
optional :parent_span_id, :string, 3
|
18
|
-
optional :display_name, :message, 4, "google.devtools.cloudtrace.v2.TruncatableString"
|
19
|
-
optional :start_time, :message, 5, "google.protobuf.Timestamp"
|
20
|
-
optional :end_time, :message, 6, "google.protobuf.Timestamp"
|
21
|
-
optional :attributes, :message, 7, "google.devtools.cloudtrace.v2.Span.Attributes"
|
22
|
-
optional :stack_trace, :message, 8, "google.devtools.cloudtrace.v2.StackTrace"
|
23
|
-
optional :time_events, :message, 9, "google.devtools.cloudtrace.v2.Span.TimeEvents"
|
24
|
-
optional :links, :message, 10, "google.devtools.cloudtrace.v2.Span.Links"
|
25
|
-
optional :status, :message, 11, "google.rpc.Status"
|
26
|
-
optional :same_process_as_parent_span, :message, 12, "google.protobuf.BoolValue"
|
27
|
-
optional :child_span_count, :message, 13, "google.protobuf.Int32Value"
|
28
|
-
end
|
29
|
-
add_message "google.devtools.cloudtrace.v2.Span.Attributes" do
|
30
|
-
map :attribute_map, :string, :message, 1, "google.devtools.cloudtrace.v2.AttributeValue"
|
31
|
-
optional :dropped_attributes_count, :int32, 2
|
32
|
-
end
|
33
|
-
add_message "google.devtools.cloudtrace.v2.Span.TimeEvent" do
|
34
|
-
optional :time, :message, 1, "google.protobuf.Timestamp"
|
35
|
-
oneof :value do
|
36
|
-
optional :annotation, :message, 2, "google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation"
|
37
|
-
optional :message_event, :message, 3, "google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent"
|
38
|
-
end
|
39
|
-
end
|
40
|
-
add_message "google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation" do
|
41
|
-
optional :description, :message, 1, "google.devtools.cloudtrace.v2.TruncatableString"
|
42
|
-
optional :attributes, :message, 2, "google.devtools.cloudtrace.v2.Span.Attributes"
|
43
|
-
end
|
44
|
-
add_message "google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent" do
|
45
|
-
optional :type, :enum, 1, "google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type"
|
46
|
-
optional :id, :int64, 2
|
47
|
-
optional :uncompressed_size_bytes, :int64, 3
|
48
|
-
optional :compressed_size_bytes, :int64, 4
|
49
|
-
end
|
50
|
-
add_enum "google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type" do
|
51
|
-
value :TYPE_UNSPECIFIED, 0
|
52
|
-
value :SENT, 1
|
53
|
-
value :RECEIVED, 2
|
54
|
-
end
|
55
|
-
add_message "google.devtools.cloudtrace.v2.Span.TimeEvents" do
|
56
|
-
repeated :time_event, :message, 1, "google.devtools.cloudtrace.v2.Span.TimeEvent"
|
57
|
-
optional :dropped_annotations_count, :int32, 2
|
58
|
-
optional :dropped_message_events_count, :int32, 3
|
59
|
-
end
|
60
|
-
add_message "google.devtools.cloudtrace.v2.Span.Link" do
|
61
|
-
optional :trace_id, :string, 1
|
62
|
-
optional :span_id, :string, 2
|
63
|
-
optional :type, :enum, 3, "google.devtools.cloudtrace.v2.Span.Link.Type"
|
64
|
-
optional :attributes, :message, 4, "google.devtools.cloudtrace.v2.Span.Attributes"
|
65
|
-
end
|
66
|
-
add_enum "google.devtools.cloudtrace.v2.Span.Link.Type" do
|
67
|
-
value :TYPE_UNSPECIFIED, 0
|
68
|
-
value :CHILD_LINKED_SPAN, 1
|
69
|
-
value :PARENT_LINKED_SPAN, 2
|
70
|
-
end
|
71
|
-
add_message "google.devtools.cloudtrace.v2.Span.Links" do
|
72
|
-
repeated :link, :message, 1, "google.devtools.cloudtrace.v2.Span.Link"
|
73
|
-
optional :dropped_links_count, :int32, 2
|
74
|
-
end
|
75
|
-
add_message "google.devtools.cloudtrace.v2.AttributeValue" do
|
76
|
-
oneof :value do
|
77
|
-
optional :string_value, :message, 1, "google.devtools.cloudtrace.v2.TruncatableString"
|
78
|
-
optional :int_value, :int64, 2
|
79
|
-
optional :bool_value, :bool, 3
|
80
|
-
end
|
81
|
-
end
|
82
|
-
add_message "google.devtools.cloudtrace.v2.StackTrace" do
|
83
|
-
optional :stack_frames, :message, 1, "google.devtools.cloudtrace.v2.StackTrace.StackFrames"
|
84
|
-
optional :stack_trace_hash_id, :int64, 2
|
85
|
-
end
|
86
|
-
add_message "google.devtools.cloudtrace.v2.StackTrace.StackFrame" do
|
87
|
-
optional :function_name, :message, 1, "google.devtools.cloudtrace.v2.TruncatableString"
|
88
|
-
optional :original_function_name, :message, 2, "google.devtools.cloudtrace.v2.TruncatableString"
|
89
|
-
optional :file_name, :message, 3, "google.devtools.cloudtrace.v2.TruncatableString"
|
90
|
-
optional :line_number, :int64, 4
|
91
|
-
optional :column_number, :int64, 5
|
92
|
-
optional :load_module, :message, 6, "google.devtools.cloudtrace.v2.Module"
|
93
|
-
optional :source_version, :message, 7, "google.devtools.cloudtrace.v2.TruncatableString"
|
94
|
-
end
|
95
|
-
add_message "google.devtools.cloudtrace.v2.StackTrace.StackFrames" do
|
96
|
-
repeated :frame, :message, 1, "google.devtools.cloudtrace.v2.StackTrace.StackFrame"
|
97
|
-
optional :dropped_frames_count, :int32, 2
|
98
|
-
end
|
99
|
-
add_message "google.devtools.cloudtrace.v2.Module" do
|
100
|
-
optional :module, :message, 1, "google.devtools.cloudtrace.v2.TruncatableString"
|
101
|
-
optional :build_id, :message, 2, "google.devtools.cloudtrace.v2.TruncatableString"
|
102
|
-
end
|
103
|
-
add_message "google.devtools.cloudtrace.v2.TruncatableString" do
|
104
|
-
optional :value, :string, 1
|
105
|
-
optional :truncated_byte_count, :int32, 2
|
106
|
-
end
|
107
|
-
end
|
108
|
-
|
109
|
-
module Google
|
110
|
-
module Devtools
|
111
|
-
module Cloudtrace
|
112
|
-
module V2
|
113
|
-
Span = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v2.Span").msgclass
|
114
|
-
Span::Attributes = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v2.Span.Attributes").msgclass
|
115
|
-
Span::TimeEvent = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v2.Span.TimeEvent").msgclass
|
116
|
-
Span::TimeEvent::Annotation = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v2.Span.TimeEvent.Annotation").msgclass
|
117
|
-
Span::TimeEvent::MessageEvent = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent").msgclass
|
118
|
-
Span::TimeEvent::MessageEvent::Type = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v2.Span.TimeEvent.MessageEvent.Type").enummodule
|
119
|
-
Span::TimeEvents = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v2.Span.TimeEvents").msgclass
|
120
|
-
Span::Link = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v2.Span.Link").msgclass
|
121
|
-
Span::Link::Type = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v2.Span.Link.Type").enummodule
|
122
|
-
Span::Links = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v2.Span.Links").msgclass
|
123
|
-
AttributeValue = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v2.AttributeValue").msgclass
|
124
|
-
StackTrace = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v2.StackTrace").msgclass
|
125
|
-
StackTrace::StackFrame = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v2.StackTrace.StackFrame").msgclass
|
126
|
-
StackTrace::StackFrames = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v2.StackTrace.StackFrames").msgclass
|
127
|
-
Module = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v2.Module").msgclass
|
128
|
-
TruncatableString = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v2.TruncatableString").msgclass
|
129
|
-
end
|
130
|
-
end
|
131
|
-
end
|
132
|
-
end
|
@@ -1,29 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# source: google/devtools/cloudtrace/v2/tracing.proto
|
3
|
-
|
4
|
-
|
5
|
-
require 'google/protobuf'
|
6
|
-
|
7
|
-
require 'google/api/annotations_pb'
|
8
|
-
require 'google/api/client_pb'
|
9
|
-
require 'google/api/field_behavior_pb'
|
10
|
-
require 'google/api/resource_pb'
|
11
|
-
require 'google/devtools/cloudtrace/v2/trace_pb'
|
12
|
-
require 'google/protobuf/empty_pb'
|
13
|
-
require 'google/protobuf/timestamp_pb'
|
14
|
-
Google::Protobuf::DescriptorPool.generated_pool.build do
|
15
|
-
add_message "google.devtools.cloudtrace.v2.BatchWriteSpansRequest" do
|
16
|
-
optional :name, :string, 1
|
17
|
-
repeated :spans, :message, 2, "google.devtools.cloudtrace.v2.Span"
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
module Google
|
22
|
-
module Devtools
|
23
|
-
module Cloudtrace
|
24
|
-
module V2
|
25
|
-
BatchWriteSpansRequest = Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudtrace.v2.BatchWriteSpansRequest").msgclass
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
29
|
-
end
|
@@ -1,54 +0,0 @@
|
|
1
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
-
# Source: google/devtools/cloudtrace/v2/tracing.proto for package 'google.devtools.cloudtrace.v2'
|
3
|
-
# Original file comments:
|
4
|
-
# Copyright 2019 Google LLC.
|
5
|
-
#
|
6
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
-
# you may not use this file except in compliance with the License.
|
8
|
-
# You may obtain a copy of the License at
|
9
|
-
#
|
10
|
-
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
-
#
|
12
|
-
# Unless required by applicable law or agreed to in writing, software
|
13
|
-
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
-
# See the License for the specific language governing permissions and
|
16
|
-
# limitations under the License.
|
17
|
-
#
|
18
|
-
#
|
19
|
-
|
20
|
-
|
21
|
-
require 'grpc'
|
22
|
-
require 'google/devtools/cloudtrace/v2/tracing_pb'
|
23
|
-
|
24
|
-
module Google
|
25
|
-
module Devtools
|
26
|
-
module Cloudtrace
|
27
|
-
module V2
|
28
|
-
module TraceService
|
29
|
-
# This file describes an API for collecting and viewing traces and spans
|
30
|
-
# within a trace. A Trace is a collection of spans corresponding to a single
|
31
|
-
# operation or set of operations for an application. A span is an individual
|
32
|
-
# timed event which forms a node of the trace tree. A single trace may
|
33
|
-
# contain span(s) from multiple services.
|
34
|
-
class Service
|
35
|
-
|
36
|
-
include GRPC::GenericService
|
37
|
-
|
38
|
-
self.marshal_class_method = :encode
|
39
|
-
self.unmarshal_class_method = :decode
|
40
|
-
self.service_name = 'google.devtools.cloudtrace.v2.TraceService'
|
41
|
-
|
42
|
-
# Sends new spans to new or existing traces. You cannot update
|
43
|
-
# existing spans.
|
44
|
-
rpc :BatchWriteSpans, BatchWriteSpansRequest, Google::Protobuf::Empty
|
45
|
-
# Creates a new span.
|
46
|
-
rpc :CreateSpan, Span, Span
|
47
|
-
end
|
48
|
-
|
49
|
-
Stub = Service.rpc_stub_class
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
54
|
-
end
|