Best News Network

Google Cloud’s Python logging library just got a ‘major’ update | ZDNet

Google has released a “major update” to the Google Cloud Python logging library for monitoring and troubleshooting Python-based containerized apps in the cloud and its serverless environments. 

The new version of ‘google-cloud-logging’, v3.0 on GitHub, gives Python developers real-time insights into the performance of an application hosted on Google Cloud’s compute infrastructure. The main update to the library is support for Python applications in its serverless environments. 

ZDNet Recommends

The best cloud storage services

The best cloud storage services

Free and cheap personal and small business cloud storage services are everywhere. But, which one is best for you? Let’s look at the top cloud storage options.

Read More

The new version of google-cloud-logging fixes an issue that dropped unsent log batches after developers deactivated apps in Google Cloud’s serverless environments. These include Cloud Run, which is a managed service for containerized apps, and Cloud Functions, which is an alternative to Amazon Web Service’s Lambda and Microsoft Azure Functions Serverless Compute.

SEE: Cloud computing: Spreading the risk with the multicloud approach

“Previous versions of google-cloud-logging supported only App Engine and Kubernetes Engine,” Google explains in a blogpost

“Users reported that the library would occasionally drop logs on serverless environments like Cloud Run and Cloud Functions. This was because the library would send logs in batches over the network. When a serverless environment would spin down, unsent batches could be lost.”

This version fixes the issue by using Google Cloud Platform’s built-in “structured JSON logging functionality” in Google Kubernetes Engine, Cloud Run, and Cloud Functions. In these environments, it will automatically use the new StructuredLogHandler and write logs as JSON strings printed to standard out, according to Google. 

Parsed logs are then automatically handed to Cloud Logging, even when the code that produced the logs has spun down. 

Google’s cloud-logging tool now automatically detects and attaches metadata about an environment to each log message to make troubleshooting an application easier. 

This version of cloud logging also brings support for logging JSON payloads for LogEntries in the standard Python logging library integration, rather than only logging string payloads as in previous versions. Google offers more details in the version 3.0 migration guide

The Python logging tool is part of Google’s efforts to improve tooling capabilities to give developers visibility into their applications and run reliable production systems. 

Google Cloud is still making losses for the company, but its revenues are growing faster than AWS and Microsoft Azure. Google Cloud had a 9% share of the $53.5 billion organizations spent on cloud infrastructure services in Q4 2021, according to analyst Canalys. AWS had a 33% share, while Microsoft Azure took 22% of the pie.  

Stay connected with us on social media platform for instant update click here to join our  Twitter, & Facebook

We are now on Telegram. Click here to join our channel (@TechiUpdate) and stay updated with the latest Technology headlines.

For all the latest Technology News Click Here 

 For the latest news and updates, follow us on Google News

Read original article here

Denial of responsibility! NewsAzi is an automatic aggregator around the global media. All the content are available free on Internet. We have just arranged it in one platform for educational purpose only. In each content, the hyperlink to the primary source is specified. All trademarks belong to their rightful owners, all materials to their authors. If you are the owner of the content and do not want us to publish your materials on our website, please contact us by email – [email protected]. The content will be deleted within 24 hours.