google-cloud-contact_center_insights-v1 1.1.0 → 1.3.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: a690f06263fe54ef1de743b1ca665089adc3ea7a68365e187f6cff06f652657a
4
- data.tar.gz: 7ffeea070238fb57589ffdd9dc3d8c440c66a9efad53fbf0625f442350a1218a
3
+ metadata.gz: e404b93b94ea5d0de5f47dc11d99f15e3b24a24bf66c9b32cba29de394e944d5
4
+ data.tar.gz: 1a7d5fe0ea2eecd1b4a4122e496a0ce0600e38e757c643722639afa10cf94d7b
5
5
  SHA512:
6
- metadata.gz: 2cf0d3bcbf30a5ec258a99819a29d522cb3596125a30b57ec65bcce9c01e084070690234237269fcfd73b61d131ef3575211dc207793e668a69d20f9fa9e9d2c
7
- data.tar.gz: 229d97b40a7a3d56e82b3e85083b761d91a341f830bbe0407b387032e5baedd41bd7bf14e84b29f90f4670eaf575a70c3df8f31bace1b9e5a945fbe5e8836390
6
+ metadata.gz: 9f0c93857cbd622333fce6a96055717a449f89dbd94716235571f2a85723d96075d7e25b87e70916ca00a881a9312ed8abe101a3196192c10192b10b35572926
7
+ data.tar.gz: 809056dc8ff41a272c53dc08ec9490766fb6bbf1d3088cbd5b1ab18f927edea8018f956f472196a55a94a4d8e8dcb7dfb6a1d68860b5177c2525ce817338866d
data/README.md CHANGED
@@ -43,33 +43,43 @@ for class and method documentation.
43
43
  See also the [Product Documentation](https://cloud.google.com/contact-center/insights/docs)
44
44
  for general usage information.
45
45
 
46
- ## Enabling Logging
47
-
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/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
- 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
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
-
54
- Configuring a Ruby stdlib logger:
46
+ ## Debug Logging
47
+
48
+ This library comes with opt-in Debug Logging that can help you troubleshoot
49
+ your application's integration with the API. When logging is activated, key
50
+ events such as requests and responses, along with data payloads and metadata
51
+ such as headers and client configuration, are logged to the standard error
52
+ stream.
53
+
54
+ **WARNING:** Client Library Debug Logging includes your data payloads in
55
+ plaintext, which could include sensitive data such as PII for yourself or your
56
+ customers, private keys, or other security data that could be compromising if
57
+ leaked. Always practice good data hygiene with your application logs, and follow
58
+ the principle of least access. Google also recommends that Client Library Debug
59
+ Logging be enabled only temporarily during active debugging, and not used
60
+ permanently in production.
61
+
62
+ To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
63
+ to the value `all`. Alternatively, you can set the value to a comma-delimited
64
+ list of client library gem names. This will select the default logging behavior,
65
+ which writes logs to the standard error stream. On a local workstation, this may
66
+ result in logs appearing on the console. When running on a Google Cloud hosting
67
+ service such as [Google Cloud Run](https://cloud.google.com/run), this generally
68
+ results in logs appearing alongside your application logs in the
69
+ [Google Cloud Logging](https://cloud.google.com/logging/) service.
70
+
71
+ You can customize logging by modifying the `logger` configuration when
72
+ constructing a client object. For example:
55
73
 
56
74
  ```ruby
75
+ require "google/cloud/contact_center_insights/v1"
57
76
  require "logger"
58
77
 
59
- module MyLogger
60
- LOGGER = Logger.new $stderr, level: Logger::WARN
61
- def logger
62
- LOGGER
63
- end
64
- end
65
-
66
- # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
67
- module GRPC
68
- extend MyLogger
78
+ client = ::Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new do |config|
79
+ config.logger = Logger.new "my-app.log"
69
80
  end
70
81
  ```
71
82
 
72
-
73
83
  ## Google Cloud Samples
74
84
 
75
85
  To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).