google-cloud-ai_platform 1.4.0 → 1.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: bdf6d7ea5a6fc37f3969216c8441bb1f7651dba1dfd15130ac0ca120b72e70fc
4
- data.tar.gz: c95b4904978cb670c9e811e651e23254344c25dbf7ef1958f4d3c9b21d2b7bd0
3
+ metadata.gz: 32f77331f2efbb03fcdb6308fbdeab39af0fbca8f53f4c3201e8c4245c89b1d0
4
+ data.tar.gz: 86b3bdde1ccde6499d800c94c4d5d72da74ce1c189886064764b8ff92810ef10
5
5
  SHA512:
6
- metadata.gz: 5647c5fb7fb00eab103864e641d45b7e058f22185852897305a5171e5c0adead0e2afb819301099996177e811c4fb834e328232502e9afc33475d4fda9461183
7
- data.tar.gz: 04d951e97edf5b31a3274f8aa8d07a16b87d2427af82b870859a8b9574d582cda045db8daaac4c863706825838364d0814790bf4efac41dbe60f4ee41ea10f31
6
+ metadata.gz: b79be21fd40e89adb66f5651c18242f2bd8b0082772fa8046d92e3e624bb2e85c31ea151094390d44a7480f3899c1d005973a6005ff888ff1303b93851885718
7
+ data.tar.gz: e52067a2614cbf9ace1a188e1211b6a2e95d3f02cd176cb57a863998ff9a9209f80c187006014acf48140a0a4b2c0190db3caffa002936787c44089655dbbf93
data/README.md CHANGED
@@ -34,35 +34,39 @@ In order to use this library, you first need to go through the following steps:
34
34
  1. [Enable the API.](https://console.cloud.google.com/apis/library/aiplatform.googleapis.com)
35
35
  1. {file:AUTHENTICATION.md Set up authentication.}
36
36
 
37
- ## Enabling Logging
38
-
39
- To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
40
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
41
- or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
42
- 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)
43
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
44
-
45
- Configuring a Ruby stdlib logger:
46
-
47
- ```ruby
48
- require "logger"
49
-
50
- module MyLogger
51
- LOGGER = Logger.new $stderr, level: Logger::WARN
52
- def logger
53
- LOGGER
54
- end
55
- end
56
-
57
- # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
58
- module GRPC
59
- extend MyLogger
60
- end
61
- ```
37
+ ## Debug Logging
38
+
39
+ This library comes with opt-in Debug Logging that can help you troubleshoot
40
+ your application's integration with the API. When logging is activated, key
41
+ events such as requests and responses, along with data payloads and metadata
42
+ such as headers and client configuration, are logged to the standard error
43
+ stream.
44
+
45
+ **WARNING:** Client Library Debug Logging includes your data payloads in
46
+ plaintext, which could include sensitive data such as PII for yourself or your
47
+ customers, private keys, or other security data that could be compromising if
48
+ leaked. Always practice good data hygiene with your application logs, and follow
49
+ the principle of least access. Google also recommends that Client Library Debug
50
+ Logging be enabled only temporarily during active debugging, and not used
51
+ permanently in production.
52
+
53
+ To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
54
+ to the value `all`. Alternatively, you can set the value to a comma-delimited
55
+ list of client library gem names. This will select the default logging behavior,
56
+ which writes logs to the standard error stream. On a local workstation, this may
57
+ result in logs appearing on the console. When running on a Google Cloud hosting
58
+ service such as [Google Cloud Run](https://cloud.google.com/run), this generally
59
+ results in logs appearing alongside your application logs in the
60
+ [Google Cloud Logging](https://cloud.google.com/logging/) service.
61
+
62
+ Debug logging also requires that the versioned clients for this service be
63
+ sufficiently recent, released after about Dec 10, 2024. If logging is not
64
+ working, try updating the versioned clients in your bundle or installed gems:
65
+ [google-cloud-ai_platform-v1](https://cloud.google.com/ruby/docs/reference/google-cloud-ai_platform-v1/latest).
62
66
 
63
67
  ## Supported Ruby Versions
64
68
 
65
- This library is supported on Ruby 2.7+.
69
+ This library is supported on Ruby 3.0+.
66
70
 
67
71
  Google provides official support for Ruby versions that are actively supported
68
72
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -20,7 +20,7 @@
20
20
  module Google
21
21
  module Cloud
22
22
  module AIPlatform
23
- VERSION = "1.4.0"
23
+ VERSION = "1.6.0"
24
24
  end
25
25
  end
26
26
  end