google-analytics-admin-v1alpha 0.30.1 → 0.31.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74c1200600efa128a1e96b05530e4ef4e2977dab25c44d518d6224c0945f67cf
4
- data.tar.gz: 997b9c0d07be29d3ca9f78de1026d22d5d0ee44f4ce612d06ec01db7a640c9ee
3
+ metadata.gz: 53c458e789b48427a71e818b77afb8bf25b3cae420e4d4c95e7232e5af4007e2
4
+ data.tar.gz: c96c652a4ddca879610bd40afde096c686ac2562ba3d7ca1f8feb833a01141c9
5
5
  SHA512:
6
- metadata.gz: ed035a309b1c384b3196691deee1c46624797059ecfe4328be82955c079f9bfe5e5f8f88e3f91eb7151afee1203440665ec35f3be1fca7bd81c66ffea59e051c
7
- data.tar.gz: 36a5158139f03d74921440393b61f53f0da7fa99699e2e0f75671650b624db0acc17c8216f2ad1c3fccd6c1239532b24a55f4e782cae9504d873c077675d4b3a
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).