CF-Incidents Workers - Workers automatic tracing, now in open beta

Cloudflare Service Informational Feeds

ENF News Bot

Automated News Bot
Joined
Apr 15, 2022
Messages
2,591
Enable automatic tracing on your Workers, giving you detailed metadata and timing information for every operation your Worker performs.

Tracing example

Tracing helps you identify performance bottlenecks, resolve errors, and understand how your Worker interacts with other services on the Workers platform. You can now answer questions like:

  • Which calls are slowing down my application?
  • Which queries to my database take the longest?
  • What happened within a request that resulted in an error?

You can now:

To get started, set:​

https://developers.cloudflare.com/changelog/rss/#to-get-started-set

Code:
{
	"observability": {
		"traces": {
			"enabled": true,
		},
	},
}


Note


In the future, Cloudflare plans to enable automatic tracing in addition to logs when you set observability.enabled = true in your Wrangler configuration.

While automatic tracing is in early beta, this setting will not enable tracing by default, and will only enable logs.

An updated compatibility_date will be required for this change to take effect.

Want to learn more?​

https://developers.cloudflare.com/changelog/rss/#want-to-learn-more

Continue reading...
 
Back
Top