google-analytics-admin-v1alpha 0.30.0 → 0.31.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: 19233d888fadec8937f6ad8d7d881eb7c25bb4b2a41db77ab969d385c687d951
4
- data.tar.gz: a4399587477a52a92b4f84afe51cd28e3280496f610e95359b5a25ef09a6ad85
3
+ metadata.gz: 53c458e789b48427a71e818b77afb8bf25b3cae420e4d4c95e7232e5af4007e2
4
+ data.tar.gz: c96c652a4ddca879610bd40afde096c686ac2562ba3d7ca1f8feb833a01141c9
5
5
  SHA512:
6
- metadata.gz: b4114e7b703c7c4f8b293d382d3e72ef9df033c32140bc2f91cd36c50ff931bc5cccc545fabf8490a96bf33706429cb7a3c1877f6270f0020c9cdd37dbf18934
7
- data.tar.gz: 13048bd0ae72fe5f5c94fbbf923304a91ae6967cda2720df8223f7b524da339bd51d394cd07852af91246f62356048c9bf68ef88d0bf538a6763e7c82a44c48d
6
+ metadata.gz: 496110eb27cf2748d432e0975fb97f696049bbb2242f0a27ee0d714e1f2305795f85d07a63da180e0b6a2418a6478f315de4f2ed359dfe9b8770c084f5020ca1
7
+ data.tar.gz: 77fd0861e075b9a5a71f854fe031e3aefada7b8e9090e7ccc7c4f156b5b06f441b38278e8a32672ae556a926e14c51cd6450e35f9f9606faa83d0708995e4bad
data/README.md CHANGED
@@ -40,33 +40,43 @@ response = client.get_account request
40
40
  View the [Client Library Documentation](https://rubydoc.info/gems/google-analytics-admin-v1alpha)
41
41
  for class and method documentation.
42
42
 
43
- ## Enabling Logging
44
-
45
- To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
46
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
47
- or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
48
- 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)
49
- and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
50
-
51
- Configuring a Ruby stdlib logger:
43
+ ## Debug Logging
44
+
45
+ This library comes with opt-in Debug Logging that can help you troubleshoot
46
+ your application's integration with the API. When logging is activated, key
47
+ events such as requests and responses, along with data payloads and metadata
48
+ such as headers and client configuration, are logged to the standard error
49
+ stream.
50
+
51
+ **WARNING:** Client Library Debug Logging includes your data payloads in
52
+ plaintext, which could include sensitive data such as PII for yourself or your
53
+ customers, private keys, or other security data that could be compromising if
54
+ leaked. Always practice good data hygiene with your application logs, and follow
55
+ the principle of least access. Google also recommends that Client Library Debug
56
+ Logging be enabled only temporarily during active debugging, and not used
57
+ permanently in production.
58
+
59
+ To enable logging, set the environment variable `GOOGLE_SDK_RUBY_LOGGING_GEMS`
60
+ to the value `all`. Alternatively, you can set the value to a comma-delimited
61
+ list of client library gem names. This will select the default logging behavior,
62
+ which writes logs to the standard error stream. On a local workstation, this may
63
+ result in logs appearing on the console. When running on a Google Cloud hosting
64
+ service such as [Google Cloud Run](https://cloud.google.com/run), this generally
65
+ results in logs appearing alongside your application logs in the
66
+ [Google Cloud Logging](https://cloud.google.com/logging/) service.
67
+
68
+ You can customize logging by modifying the `logger` configuration when
69
+ constructing a client object. For example:
52
70
 
53
71
  ```ruby
72
+ require "google/analytics/admin/v1alpha"
54
73
  require "logger"
55
74
 
56
- module MyLogger
57
- LOGGER = Logger.new $stderr, level: Logger::WARN
58
- def logger
59
- LOGGER
60
- end
61
- end
62
-
63
- # Define a gRPC module-level logger method before grpc/logconfig.rb loads.
64
- module GRPC
65
- extend MyLogger
75
+ client = ::Google::Analytics::Admin::V1alpha::AnalyticsAdminService::Client.new do |config|
76
+ config.logger = Logger.new "my-app.log"
66
77
  end
67
78
  ```
68
79
 
69
-
70
80
  ## Google Cloud Samples
71
81
 
72
82
  To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).