Chrome Extension to Start Tracing

Product

We are releasing a Chrome extension for Tideways today. The extension allows you to force the collection of traces for all requests of your current browser session with the push of a button, instead of having to wait for a random trace to be sampled.

The Profiler already shipped with multiple triggers to generate traces directly from your application before but the feature left a lot to be desired. For example it was nearly impossible to test POST- or Ajax-requests before.

After installing the extension, start using it by clicking on the “Profiler” icon next to your URL location. You will see a list of all your applications like the one in the screenshot below.

Chrome ExtensionChrome Extension

Pick the application to profile and the tracing starts. This works by creating a cookie with a short lifetime of five minutes. Tideways will react to this cookie on the server side. If you picked the wrong application which is not connected to the site on the current URL, nothing will happen.

On the Profiler UI you can list all the traces that were generated in the tracing session. Click on “Traces” in the application overview to see them.

You can download the Chrome extension from the Google store to try this new feature.

Using the Chrome extension requires at least Tideways PHP library version 0.11 on the server.

A note on security: Triggering a trace is secured with HMAC based on your API-Key and a short expiration date. This prevents malicious users from generating traces on your production servers. The API key is never sent directly to the extension or your site, avoiding that anybody will accidentally get access to the key through logfiles, HTTP referers or by sending the cookie to the wrong site.

About the author

  • Benjamin

Benjamin
Founder & CEO

I am the founder and CEO of Tideways. I started the company over 10 years ago with the mission to move the PHP ecosystem forward, starting with performance. As managing director, I work across product, strategy, and the day-to-day of building a developer-focused SaaS business.

I’m a core contributor to the Doctrine open-source project and a founding board member of the PHP Foundation, which reflects my long-standing commitment to the PHP ecosystem. I particularly enjoy working at the intersection of application performance, developer experience, and the open-source community that makes PHP what it is. Outside of work, I enjoy board games, hiking, and coffee.