google-cloud-trace-v1 0.8.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/trace/v1/trace_service/client.rb +9 -3
- data/lib/google/cloud/trace/v1/trace_service/rest/client.rb +9 -3
- data/lib/google/cloud/trace/v1/version.rb +1 -1
- data/lib/google/devtools/cloudtrace/v1/trace_pb.rb +1 -1
- data/proto_docs/google/api/client.rb +4 -0
- metadata +4 -116
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 893d7621343fb3f37cf6d3b3ff605c4ee838fbe010a00d9228a5ee811caf91dc
|
4
|
+
data.tar.gz: 6974f1aeb011dca06b5883513c1672e7c6c4cdf3fe524c92800c7184a8a7a9e1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f44ee4e525bf085a7228cd8efe86320eea2dd49fde751001f384fae07cfaa0a644a0a1592e06b6e9c73546e7aaa46b2f380f987fff2f0862d366075256615542
|
7
|
+
data.tar.gz: 012574a2ff43927c713da9ae36084b2296ca92c26b1cf584eb8a82a020176b088602c7bd0ff53a41b4082b90c666888617df15f43849ccfe03f28ad95f090e13
|
data/README.md
CHANGED
@@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
76
76
|
|
77
77
|
## Supported Ruby Versions
|
78
78
|
|
79
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.7+.
|
80
80
|
|
81
81
|
Google provides official support for Ruby versions that are actively supported
|
82
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# may span multiple services.
|
35
35
|
#
|
36
36
|
class Client
|
37
|
+
# @private
|
38
|
+
API_VERSION = ""
|
39
|
+
|
37
40
|
# @private
|
38
41
|
DEFAULT_ENDPOINT_TEMPLATE = "cloudtrace.$UNIVERSE_DOMAIN$"
|
39
42
|
|
@@ -297,10 +300,11 @@ module Google
|
|
297
300
|
# Customize the options with defaults
|
298
301
|
metadata = @config.rpcs.list_traces.metadata.to_h
|
299
302
|
|
300
|
-
# Set x-goog-api-client
|
303
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
301
304
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
302
305
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
303
306
|
gapic_version: ::Google::Cloud::Trace::V1::VERSION
|
307
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
304
308
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
305
309
|
|
306
310
|
header_params = {}
|
@@ -385,10 +389,11 @@ module Google
|
|
385
389
|
# Customize the options with defaults
|
386
390
|
metadata = @config.rpcs.get_trace.metadata.to_h
|
387
391
|
|
388
|
-
# Set x-goog-api-client
|
392
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
389
393
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
390
394
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
391
395
|
gapic_version: ::Google::Cloud::Trace::V1::VERSION
|
396
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
392
397
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
393
398
|
|
394
399
|
header_params = {}
|
@@ -479,10 +484,11 @@ module Google
|
|
479
484
|
# Customize the options with defaults
|
480
485
|
metadata = @config.rpcs.patch_traces.metadata.to_h
|
481
486
|
|
482
|
-
# Set x-goog-api-client
|
487
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
483
488
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
484
489
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
485
490
|
gapic_version: ::Google::Cloud::Trace::V1::VERSION
|
491
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
486
492
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
487
493
|
|
488
494
|
header_params = {}
|
@@ -36,6 +36,9 @@ module Google
|
|
36
36
|
# may span multiple services.
|
37
37
|
#
|
38
38
|
class Client
|
39
|
+
# @private
|
40
|
+
API_VERSION = ""
|
41
|
+
|
39
42
|
# @private
|
40
43
|
DEFAULT_ENDPOINT_TEMPLATE = "cloudtrace.$UNIVERSE_DOMAIN$"
|
41
44
|
|
@@ -289,12 +292,13 @@ module Google
|
|
289
292
|
# Customize the options with defaults
|
290
293
|
call_metadata = @config.rpcs.list_traces.metadata.to_h
|
291
294
|
|
292
|
-
# Set x-goog-api-client
|
295
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
293
296
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
294
297
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
295
298
|
gapic_version: ::Google::Cloud::Trace::V1::VERSION,
|
296
299
|
transports_version_send: [:rest]
|
297
300
|
|
301
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
298
302
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
299
303
|
|
300
304
|
options.apply_defaults timeout: @config.rpcs.list_traces.timeout,
|
@@ -370,12 +374,13 @@ module Google
|
|
370
374
|
# Customize the options with defaults
|
371
375
|
call_metadata = @config.rpcs.get_trace.metadata.to_h
|
372
376
|
|
373
|
-
# Set x-goog-api-client
|
377
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
374
378
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
375
379
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
376
380
|
gapic_version: ::Google::Cloud::Trace::V1::VERSION,
|
377
381
|
transports_version_send: [:rest]
|
378
382
|
|
383
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
379
384
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
380
385
|
|
381
386
|
options.apply_defaults timeout: @config.rpcs.get_trace.timeout,
|
@@ -454,12 +459,13 @@ module Google
|
|
454
459
|
# Customize the options with defaults
|
455
460
|
call_metadata = @config.rpcs.patch_traces.metadata.to_h
|
456
461
|
|
457
|
-
# Set x-goog-api-client
|
462
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
458
463
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
459
464
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
460
465
|
gapic_version: ::Google::Cloud::Trace::V1::VERSION,
|
461
466
|
transports_version_send: [:rest]
|
462
467
|
|
468
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
463
469
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
464
470
|
|
465
471
|
options.apply_defaults timeout: @config.rpcs.patch_traces.timeout,
|
@@ -11,7 +11,7 @@ require 'google/protobuf/timestamp_pb'
|
|
11
11
|
require 'google/api/annotations_pb'
|
12
12
|
|
13
13
|
|
14
|
-
descriptor_data = "\n)google/devtools/cloudtrace/v1/trace.proto\x12\x1dgoogle.devtools.cloudtrace.v1\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/api/annotations.proto\"f\n\x05Trace\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x10\n\x08trace_id\x18\x02 \x01(\t\x12\x37\n\x05spans\x18\x03 \x03(\x0b\x32(.google.devtools.cloudtrace.v1.TraceSpan\">\n\x06Traces\x12\x34\n\x06traces\x18\x01 \x03(\x0b\x32$.google.devtools.cloudtrace.v1.Trace\"\
|
14
|
+
descriptor_data = "\n)google/devtools/cloudtrace/v1/trace.proto\x12\x1dgoogle.devtools.cloudtrace.v1\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/api/annotations.proto\"f\n\x05Trace\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x10\n\x08trace_id\x18\x02 \x01(\t\x12\x37\n\x05spans\x18\x03 \x03(\x0b\x32(.google.devtools.cloudtrace.v1.TraceSpan\">\n\x06Traces\x12\x34\n\x06traces\x18\x01 \x03(\x0b\x32$.google.devtools.cloudtrace.v1.Trace\"\xa2\x03\n\tTraceSpan\x12\x0f\n\x07span_id\x18\x01 \x01(\x06\x12?\n\x04kind\x18\x02 \x01(\x0e\x32\x31.google.devtools.cloudtrace.v1.TraceSpan.SpanKind\x12\x0c\n\x04name\x18\x03 \x01(\t\x12.\n\nstart_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1b\n\x0eparent_span_id\x18\x06 \x01(\x06\x42\x03\xe0\x41\x01\x12\x44\n\x06labels\x18\x07 \x03(\x0b\x32\x34.google.devtools.cloudtrace.v1.TraceSpan.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"E\n\x08SpanKind\x12\x19\n\x15SPAN_KIND_UNSPECIFIED\x10\x00\x12\x0e\n\nRPC_SERVER\x10\x01\x12\x0e\n\nRPC_CLIENT\x10\x02\"\x80\x03\n\x11ListTracesRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12L\n\x04view\x18\x02 \x01(\x0e\x32\x39.google.devtools.cloudtrace.v1.ListTracesRequest.ViewTypeB\x03\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x12\n\npage_token\x18\x04 \x01(\t\x12.\n\nstart_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08\x65nd_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x06\x66ilter\x18\x07 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x08 \x01(\tB\x03\xe0\x41\x01\"N\n\x08ViewType\x12\x19\n\x15VIEW_TYPE_UNSPECIFIED\x10\x00\x12\x0b\n\x07MINIMAL\x10\x01\x12\x0c\n\x08ROOTSPAN\x10\x02\x12\x0c\n\x08\x43OMPLETE\x10\x03\"c\n\x12ListTracesResponse\x12\x34\n\x06traces\x18\x01 \x03(\x0b\x32$.google.devtools.cloudtrace.v1.Trace\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"A\n\x0fGetTraceRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x15\n\x08trace_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"i\n\x12PatchTracesRequest\x12\x17\n\nproject_id\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12:\n\x06traces\x18\x02 \x01(\x0b\x32%.google.devtools.cloudtrace.v1.TracesB\x03\xe0\x41\x02\x32\xb5\x05\n\x0cTraceService\x12\xa8\x01\n\nListTraces\x12\x30.google.devtools.cloudtrace.v1.ListTracesRequest\x1a\x31.google.devtools.cloudtrace.v1.ListTracesResponse\"5\xda\x41\nproject_id\x82\xd3\xe4\x93\x02\"\x12 /v1/projects/{project_id}/traces\x12\xab\x01\n\x08GetTrace\x12..google.devtools.cloudtrace.v1.GetTraceRequest\x1a$.google.devtools.cloudtrace.v1.Trace\"I\xda\x41\x13project_id,trace_id\x82\xd3\xe4\x93\x02-\x12+/v1/projects/{project_id}/traces/{trace_id}\x12\x9e\x01\n\x0bPatchTraces\x12\x31.google.devtools.cloudtrace.v1.PatchTracesRequest\x1a\x16.google.protobuf.Empty\"D\xda\x41\x11project_id,traces\x82\xd3\xe4\x93\x02*2 /v1/projects/{project_id}/traces:\x06traces\x1a\xaa\x01\xca\x41\x19\x63loudtrace.googleapis.com\xd2\x41\x8a\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/trace.append,https://www.googleapis.com/auth/trace.readonlyB\xad\x01\n!com.google.devtools.cloudtrace.v1B\nTraceProtoP\x01Z/cloud.google.com/go/trace/apiv1/tracepb;tracepb\xaa\x02\x15Google.Cloud.Trace.V1\xca\x02\x15Google\\Cloud\\Trace\\V1\xea\x02\x18Google::Cloud::Trace::V1b\x06proto3"
|
15
15
|
|
16
16
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
17
17
|
|
@@ -118,6 +118,10 @@ module Google
|
|
118
118
|
# @return [::String]
|
119
119
|
# Optional link to proto reference documentation. Example:
|
120
120
|
# https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
121
|
+
# @!attribute [rw] rest_reference_documentation_uri
|
122
|
+
# @return [::String]
|
123
|
+
# Optional link to REST reference documentation. Example:
|
124
|
+
# https://cloud.google.com/pubsub/lite/docs/reference/rest
|
121
125
|
class Publishing
|
122
126
|
include ::Google::Protobuf::MessageExts
|
123
127
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-trace-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -44,118 +44,6 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.0'
|
47
|
-
- !ruby/object:Gem::Dependency
|
48
|
-
name: google-style
|
49
|
-
requirement: !ruby/object:Gem::Requirement
|
50
|
-
requirements:
|
51
|
-
- - "~>"
|
52
|
-
- !ruby/object:Gem::Version
|
53
|
-
version: 1.26.3
|
54
|
-
type: :development
|
55
|
-
prerelease: false
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
requirements:
|
58
|
-
- - "~>"
|
59
|
-
- !ruby/object:Gem::Version
|
60
|
-
version: 1.26.3
|
61
|
-
- !ruby/object:Gem::Dependency
|
62
|
-
name: minitest
|
63
|
-
requirement: !ruby/object:Gem::Requirement
|
64
|
-
requirements:
|
65
|
-
- - "~>"
|
66
|
-
- !ruby/object:Gem::Version
|
67
|
-
version: '5.16'
|
68
|
-
type: :development
|
69
|
-
prerelease: false
|
70
|
-
version_requirements: !ruby/object:Gem::Requirement
|
71
|
-
requirements:
|
72
|
-
- - "~>"
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '5.16'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: minitest-focus
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
78
|
-
requirements:
|
79
|
-
- - "~>"
|
80
|
-
- !ruby/object:Gem::Version
|
81
|
-
version: '1.1'
|
82
|
-
type: :development
|
83
|
-
prerelease: false
|
84
|
-
version_requirements: !ruby/object:Gem::Requirement
|
85
|
-
requirements:
|
86
|
-
- - "~>"
|
87
|
-
- !ruby/object:Gem::Version
|
88
|
-
version: '1.1'
|
89
|
-
- !ruby/object:Gem::Dependency
|
90
|
-
name: minitest-rg
|
91
|
-
requirement: !ruby/object:Gem::Requirement
|
92
|
-
requirements:
|
93
|
-
- - "~>"
|
94
|
-
- !ruby/object:Gem::Version
|
95
|
-
version: '5.2'
|
96
|
-
type: :development
|
97
|
-
prerelease: false
|
98
|
-
version_requirements: !ruby/object:Gem::Requirement
|
99
|
-
requirements:
|
100
|
-
- - "~>"
|
101
|
-
- !ruby/object:Gem::Version
|
102
|
-
version: '5.2'
|
103
|
-
- !ruby/object:Gem::Dependency
|
104
|
-
name: rake
|
105
|
-
requirement: !ruby/object:Gem::Requirement
|
106
|
-
requirements:
|
107
|
-
- - ">="
|
108
|
-
- !ruby/object:Gem::Version
|
109
|
-
version: '13.0'
|
110
|
-
type: :development
|
111
|
-
prerelease: false
|
112
|
-
version_requirements: !ruby/object:Gem::Requirement
|
113
|
-
requirements:
|
114
|
-
- - ">="
|
115
|
-
- !ruby/object:Gem::Version
|
116
|
-
version: '13.0'
|
117
|
-
- !ruby/object:Gem::Dependency
|
118
|
-
name: redcarpet
|
119
|
-
requirement: !ruby/object:Gem::Requirement
|
120
|
-
requirements:
|
121
|
-
- - "~>"
|
122
|
-
- !ruby/object:Gem::Version
|
123
|
-
version: '3.0'
|
124
|
-
type: :development
|
125
|
-
prerelease: false
|
126
|
-
version_requirements: !ruby/object:Gem::Requirement
|
127
|
-
requirements:
|
128
|
-
- - "~>"
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
version: '3.0'
|
131
|
-
- !ruby/object:Gem::Dependency
|
132
|
-
name: simplecov
|
133
|
-
requirement: !ruby/object:Gem::Requirement
|
134
|
-
requirements:
|
135
|
-
- - "~>"
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
version: '0.18'
|
138
|
-
type: :development
|
139
|
-
prerelease: false
|
140
|
-
version_requirements: !ruby/object:Gem::Requirement
|
141
|
-
requirements:
|
142
|
-
- - "~>"
|
143
|
-
- !ruby/object:Gem::Version
|
144
|
-
version: '0.18'
|
145
|
-
- !ruby/object:Gem::Dependency
|
146
|
-
name: yard
|
147
|
-
requirement: !ruby/object:Gem::Requirement
|
148
|
-
requirements:
|
149
|
-
- - "~>"
|
150
|
-
- !ruby/object:Gem::Version
|
151
|
-
version: '0.9'
|
152
|
-
type: :development
|
153
|
-
prerelease: false
|
154
|
-
version_requirements: !ruby/object:Gem::Requirement
|
155
|
-
requirements:
|
156
|
-
- - "~>"
|
157
|
-
- !ruby/object:Gem::Version
|
158
|
-
version: '0.9'
|
159
47
|
description: The Cloud Trace API lets you send and retrieve latency data to and from
|
160
48
|
Cloud Trace. This API provides low-level interfaces for interacting directly with
|
161
49
|
the feature. For some languages, you can use OpenTelemetry, a set of open source
|
@@ -205,14 +93,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
205
93
|
requirements:
|
206
94
|
- - ">="
|
207
95
|
- !ruby/object:Gem::Version
|
208
|
-
version: '2.
|
96
|
+
version: '2.7'
|
209
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
210
98
|
requirements:
|
211
99
|
- - ">="
|
212
100
|
- !ruby/object:Gem::Version
|
213
101
|
version: '0'
|
214
102
|
requirements: []
|
215
|
-
rubygems_version: 3.5.
|
103
|
+
rubygems_version: 3.5.6
|
216
104
|
signing_key:
|
217
105
|
specification_version: 4
|
218
106
|
summary: Sends application trace data to Stackdriver Trace for viewing. Trace data
|