google-cloud-trace-v1 0.3.5 → 0.5.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 16976ca55a9ce65ab876c1878f54e869a4f3ed9dd7667bb6f9dbd543354b338f
4
- data.tar.gz: c5335e8c6e5dc7d78a8a81d129e717dcaf8c87e4afb7cb1b49269b37737feff9
3
+ metadata.gz: 90d4e9286c3a63b2dde9b4349c0984308a2c00d0128b15843b5128a8d2df5cca
4
+ data.tar.gz: ba13f021a35f733b54fe1027cab45c3c575efb609780c5705517b7ef8a239016
5
5
  SHA512:
6
- metadata.gz: 9d57e4174eb83a3e32abe65d274d6358a1c8b6ea1aef5c1a54b39969c8faabc0ddfb56d67451377ac5cb617da11e3c8b69eba5adddfb188b255c4319cb04353a
7
- data.tar.gz: c57006a86bf6749c2187fa685af44be25cdd3f52c63e3fa001e41a171e625ac408a11c63889fa99df4e1aa78c72ddcaf514d01e683c62b94fb12451ea8ecb5bc
6
+ metadata.gz: 80e0ed5b917016f4168f2e20b519c5c30b798a23143e1ddab8939530c01a273d39b38e6e63a362e443f273ffdb3be0d4e5f03a2e8f39149b677cafcf5156b95c
7
+ data.tar.gz: fb7110c14d9c6f8d9e49762a31f560b05e65f7fdf3413eff126f651e784e733c615b088e8b97f1e112db20394ca44fb2e235ab3eb9bcbb504d3a72db7ec5210d
data/AUTHENTICATION.md CHANGED
@@ -114,7 +114,7 @@ credentials are discovered.
114
114
  To configure your system for this, simply:
115
115
 
116
116
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
117
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
117
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
118
118
  3. Write code as if already authenticated.
119
119
 
120
120
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -1,8 +1,8 @@
1
1
  # Ruby Client for the Cloud Trace V1 API
2
2
 
3
- API Client library for the Cloud Trace V1 API
3
+ Sends application trace data to Stackdriver Trace for viewing. Trace data is collected for all App Engine applications by default. Trace data from other applications can be provided using this API. This library is used to interact with the Trace API directly. If you are looking to instrument your application for Stackdriver Trace, we recommend using OpenTelemetry.
4
4
 
5
- The Cloud Trace API lets you send and retrieve latency data to and from Cloud Trace. This API provides low-level interfaces for interacting directly with the feature. For some languages, you can use OpenCensus, a set of open source tracing and stats instrumentation libraries that work with multiple backends.
5
+ The Cloud Trace API lets you send and retrieve latency data to and from Cloud Trace. This API provides low-level interfaces for interacting directly with the feature. For some languages, you can use OpenTelemetry, a set of open source tracing and stats instrumentation libraries that work with multiple backends.
6
6
 
7
7
  https://github.com/googleapis/google-cloud-ruby
8
8
 
@@ -37,7 +37,7 @@ request = ::Google::Cloud::Trace::V1::ListTracesRequest.new # (request fields as
37
37
  response = client.list_traces request
38
38
  ```
39
39
 
40
- View the [Client Library Documentation](https://googleapis.dev/ruby/google-cloud-trace-v1/latest)
40
+ View the [Client Library Documentation](https://cloud.google.com/ruby/docs/reference/google-cloud-trace-v1/latest)
41
41
  for class and method documentation.
42
42
 
43
43
  See also the [Product Documentation](https://cloud.google.com/trace)
@@ -46,7 +46,7 @@ for general usage information.
46
46
  ## Enabling Logging
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
49
+ The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
50
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/trace/v1/trace_service/rest"
20
+ require "google/cloud/trace/v1/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module Trace
25
+ ##
26
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
27
+ #
28
+ # @example
29
+ #
30
+ # require "google/cloud/trace/v1/rest"
31
+ # client = ::Google::Cloud::Trace::V1::TraceService::Rest::Client.new
32
+ #
33
+ module V1
34
+ end
35
+ end
36
+ end
37
+ end
@@ -263,13 +263,11 @@ module Google
263
263
  # # Call the list_traces method.
264
264
  # result = client.list_traces request
265
265
  #
266
- # # The returned object is of type Gapic::PagedEnumerable. You can
267
- # # iterate over all elements by calling #each, and the enumerable
268
- # # will lazily make API calls to fetch subsequent pages. Other
269
- # # methods are also available for managing paging directly.
270
- # result.each do |response|
266
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
267
+ # # over elements, and API calls will be issued to fetch pages as needed.
268
+ # result.each do |item|
271
269
  # # Each element is of type ::Google::Cloud::Trace::V1::Trace.
272
- # p response
270
+ # p item
273
271
  # end
274
272
  #
275
273
  def list_traces request, options = nil