google-cloud-trace-v1 0.4.0 → 0.6.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: 3eafa41f8c441c3011387bced7a075abe26294cc903ce9992933e39002243e1d
4
- data.tar.gz: eef5c781d4be779876d9a7fadfe4f2f55e9cc8b35ecc055632bf01f1f160bec6
3
+ metadata.gz: 131c403f337c0c72b79c1b7c9868329ec0ef5fe658383e3654fcffd896a08b30
4
+ data.tar.gz: 9828eab9936089175164091b8ebace8c6a0dd92ca169eaaf1b3078786cf034b1
5
5
  SHA512:
6
- metadata.gz: 6fa7b226f1186c9122107ffc7a8924828762a363fb0220d812047118974b40b9d7fbfbb2a49bc574d9be1cfb8d998cf8c0daab62354ca1e5a4ff1c7612138e48
7
- data.tar.gz: 3e813cfbb834a322dcda266d2aa205f30fc412a379f3778b6e06277896062d2d2cb45a1b619e53acff78c7216e1001bffacf1cfa3b2a1e80baa2cc53d0f409e2
6
+ metadata.gz: 42c5a48b00c705f65de16ce5bb4795b70ae590b388755fe743bafe5c18dd4b208e5ed02251ecadf6885c6313c81bbace8989561b0cec9332751a84eb445b57ab
7
+ data.tar.gz: 892694ca19a866ec6f6be2fc4018446ae53d9b9fcd0b877f067a70b78f859c77ab7c410965623e4443d74f6678cd89fd6583947a85d60a5ff13bdea4806f2150
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
 
@@ -46,8 +46,8 @@ 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,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
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
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/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.
53
53
 
@@ -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
@@ -533,9 +531,9 @@ module Google
533
531
  # * (`String`) The path to a service account key file in JSON format
534
532
  # * (`Hash`) A service account key as a Hash
535
533
  # * (`Google::Auth::Credentials`) A googleauth credentials object
536
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
534
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
537
535
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
538
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
536
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
539
537
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
540
538
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
541
539
  # * (`nil`) indicating no credentials