google-cloud-trace 0.42.1 → 0.42.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +8 -26
- data/CHANGELOG.md +6 -0
- data/LOGGING.md +1 -1
- data/lib/google/cloud/trace/version.rb +1 -1
- data/lib/google/cloud/trace.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: eccc095ea329fbdd424be2d75e09b81686d76bc94d795828e3c36aa53ef42d1b
|
|
4
|
+
data.tar.gz: 651d7c07032b9370e798eb018f487f10fece4fc640f50c86fb900f1582f630a5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d3c940b22e9ef1ba2d78f5c1f5014460a20b15316cad9d15e90db0a01e31ef4ee3a728110c4f1b827424852dc1e258b62ea767cf35583308272b0c9e60543746
|
|
7
|
+
data.tar.gz: dd9b5e7db01b5f327efea9f03472c838d66aee77cae13020dea7793fd57c6c44e28cddace5dedc627eeeb9fd6e3df6c1f9bb0aed3a6b9f12702f57f0f707f980
|
data/AUTHENTICATION.md
CHANGED
|
@@ -124,15 +124,6 @@ To configure your system for this, simply:
|
|
|
124
124
|
**NOTE:** This is _not_ recommended for running in production. The Cloud SDK
|
|
125
125
|
*should* only be used during development.
|
|
126
126
|
|
|
127
|
-
[gce-how-to]: https://cloud.google.com/compute/docs/authentication#using
|
|
128
|
-
[dev-console]: https://console.cloud.google.com/project
|
|
129
|
-
|
|
130
|
-
[enable-apis]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/enable-apis.png
|
|
131
|
-
|
|
132
|
-
[create-new-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account.png
|
|
133
|
-
[create-new-service-account-existing-keys]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/create-new-service-account-existing-keys.png
|
|
134
|
-
[reuse-service-account]: https://raw.githubusercontent.com/GoogleCloudPlatform/gcloud-common/master/authentication/reuse-service-account.png
|
|
135
|
-
|
|
136
127
|
## Creating a Service Account
|
|
137
128
|
|
|
138
129
|
Google Cloud requires a **Project ID** and **Service Account Credentials** to
|
|
@@ -143,31 +134,22 @@ If you are not running this client within [Google Cloud Platform
|
|
|
143
134
|
environments](#google-cloud-platform-environments), you need a Google
|
|
144
135
|
Developers service account.
|
|
145
136
|
|
|
146
|
-
1. Visit the [Google
|
|
137
|
+
1. Visit the [Google Cloud Console](https://console.cloud.google.com/project).
|
|
147
138
|
1. Create a new project or click on an existing project.
|
|
148
|
-
1. Activate the
|
|
139
|
+
1. Activate the menu in the upper left and select **APIs & Services**. From
|
|
149
140
|
here, you will enable the APIs that your application requires.
|
|
150
141
|
|
|
151
|
-
![Enable the APIs that your application requires][enable-apis]
|
|
152
|
-
|
|
153
142
|
*Note: You may need to enable billing in order to use these services.*
|
|
154
143
|
|
|
155
144
|
1. Select **Credentials** from the side navigation.
|
|
156
145
|
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
![Create a new service account][create-new-service-account]
|
|
160
|
-
|
|
161
|
-
![Create a new service account With Existing Keys][create-new-service-account-existing-keys]
|
|
162
|
-
|
|
163
|
-
Find the "Add credentials" drop down and select "Service account" to be
|
|
164
|
-
guided through downloading a new JSON key file.
|
|
165
|
-
|
|
166
|
-
If you want to re-use an existing service account, you can easily generate a
|
|
167
|
-
new key file. Just select the account you wish to re-use, and click "Generate
|
|
168
|
-
new JSON key":
|
|
146
|
+
Find the "Create credentials" drop down near the top of the page, and select
|
|
147
|
+
"Service account" to be guided through downloading a new JSON key file.
|
|
169
148
|
|
|
170
|
-
|
|
149
|
+
If you want to re-use an existing service account, you can easily generate
|
|
150
|
+
a new key file. Just select the account you wish to re-use click the pencil
|
|
151
|
+
tool on the right side to edit the service account, select the **Keys** tab,
|
|
152
|
+
and then select **Add Key**.
|
|
171
153
|
|
|
172
154
|
The key file you download will be used by this library to authenticate API
|
|
173
155
|
requests and should be stored in a secure location.
|
data/CHANGELOG.md
CHANGED
data/LOGGING.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
To enable logging for this library, set the logger for the underlying
|
|
4
4
|
[gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library. The logger
|
|
5
5
|
that you set may be a Ruby stdlib
|
|
6
|
-
[`Logger`](https://ruby-doc.org/
|
|
6
|
+
[`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as
|
|
7
7
|
shown below, or a
|
|
8
8
|
[`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
|
|
9
9
|
that will write logs to [Stackdriver
|
data/lib/google/cloud/trace.rb
CHANGED
|
@@ -204,7 +204,7 @@ module Google
|
|
|
204
204
|
# Google::Cloud::Trace.get.create_span "my_span"
|
|
205
205
|
#
|
|
206
206
|
def self.set trace
|
|
207
|
-
trace_context = trace
|
|
207
|
+
trace_context = trace&.trace_context
|
|
208
208
|
Stackdriver::Core::TraceContext.set trace_context
|
|
209
209
|
Thread.current[THREAD_KEY] = trace
|
|
210
210
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: google-cloud-trace
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.42.
|
|
4
|
+
version: 0.42.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Azuma
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2023-05-19 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: google-cloud-core
|
|
@@ -319,7 +319,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
319
319
|
- !ruby/object:Gem::Version
|
|
320
320
|
version: '0'
|
|
321
321
|
requirements: []
|
|
322
|
-
rubygems_version: 3.
|
|
322
|
+
rubygems_version: 3.4.2
|
|
323
323
|
signing_key:
|
|
324
324
|
specification_version: 4
|
|
325
325
|
summary: Application Instrumentation and API Client library for Stackdriver Trace
|