[go: up one dir, main page]

Skip to content

Release google-cloud-logging 1.6.0

Compare
Choose a tag to compare
@yoshi-automation yoshi-automation released this 23 Jan 18:17
aa47447
  • AsyncWriter buffer entries and make batch API calls
    • Update AsyncWriter to buffer log entries and batch API calls.
    • Maintain backwards compatibility with the previous AsyncWriter's public API,
      although the implementation is changed.
    • Back pressure is applied by limiting the number of queued API calls.
      Errors will now be raised when there are not enough resources.
    • Errors are reported using the AsyncWriter#on_error callback.
    • Pending log entries are sent before the process closes using at_exit.
    • Add Logging on_error configuration.
  • Add default insert_id value for Entry
    • Add Entry.insert_id
    • Add default insert_id value for Entry
      An Entry object is assigned an insert_id when created so that if the
      Entry object gets persisted multiple times it would know its insert_id
      value and not attempt to generate a new one for each persist attempt.
      An Entry object will still be considered empty if the only value it has
      is the insert_id.
    • (This change does not use SecureRandom for performance reasons.)
  • Add Logging trace_sampled
    • Add Entry#trace_sampled attribute
    • Add trace_sampled to Logger::RequestInfo
  • Changes to Rails default Logger
    • Delay updating the Rails default logger until the first web request.
      • This will avoid issues with forking processes and gRPC resources.
      • This is accomplished by adding the on_init argument to middleware.
    • Add Railtie.set_default_logger
      • This method can be called post-fork to update the Rails default logger.
  • Make use of Credentials#project_id
    • Use Credentials#project_id
      If a project_id is not provided, use the value on the Credentials object.
      This value was added in googleauth 0.7.0.
    • Loosen googleauth dependency
      Allow for new releases up to 0.10.
      The googleauth devs have committed to maintanining the current API
      and will not make backwards compatible changes before 0.10.
  • Direct logs for "/healthz" requests to the health check log.
  • Update documentation.