Request Tracing in Payara Micro

Payara

In a previous blog post, we explored the benefits of using Request Tracing in Payara Server. Payara Micro streamlines the configuration process, allowing you to tailor request tracing directly through command-line options. Let’s have a look at how you can customize this tool for your Payara Micro applications.

The Core Options

  • enableRequestTracing: This is the main switch for activating the Request Tracing Service. You can optionally include a time threshold value and unit with this flag. For example, –enableRequestTracing 500ms will enable tracing on requests taking longer than 500 milliseconds.
  • requestTracingThresholdUnit and requestTracingThresholdValue: Use these to explicitly define your desired time unit (e.g., SECONDS, MINUTES, NANOSECONDS) and the numerical threshold value that triggers tracing.
  • enable/requesttracingadaptivesampling…: Adaptive sampling offers a dynamic way to manage tracing. When enabled, Payara Micro will automatically adjust how many requests get traced, aiming to maintain a target count of traces over a period of time. You can further customize this behavior with the accompanying options.

Quick Tip: Shorthand Configuration For faster adjustments, combine the –enableRequestTracing flag with your desired threshold value and unit in a single string. Example: java -jar payara-micro.jar –enableRequestTracing 2s

Need More Control?

For the most granular configuration, you can use post-boot command files. These files allow you to execute the same set of asadmin commands used to manage the Request Tracing Service in Payara Server, giving you full access to all available settings.

Reference the Docs

Download Payara Micro Community and head over to the Payara Micro Request Tracing documentation, for a detailed breakdown of configuration options, and examples to guide your setup. Happy Tracing!

 

 

{{cta(‘5075eacb-68ea-4589-a34e-7c3c084af2ca’)}}

Branding Tagline_Hubspot Banner-2

 

Comments (0)

Post a comment

Your email address will not be published. Required fields are marked *

Payara needs the contact information you provide to us to contact you about our products and services. You may unsubscribe from these communications at any time. For information on how to unsubscribe, as well as our privacy practices and commitment to protecting your privacy, please review our Legal & Privacy Policy.

Related Posts

payara qube logo 5 minutes
Payara

Payara Cloud Is Now part of Payara Qube family of Unified Platforms for Enterprise Java

Payara Cloud is becoming part of Payara Qube family of Java application deployment runtimes. This move reflects how the […]

Payara promotional graphic showing transition from Spring to Jakarta EE, including technology logos, a code icon and arrows leading from Spring to Jakarta EE. 6 minutes
Jakarta EE

From Spring Boot To Jakarta EE 11: How Payara Starter Eases The Transition

If you’ve been living in the Spring ecosystem, you’re used to fast project setup. Spring Initializr gives you a […]

Promotional graphic for a podcast episode titled “Why Open Source is the Future of Business Innovation - A conversation with Arun Gupta”. The podcast is hosted by Payara Community. The right side features a photo of the speaker, Arun Gupta, labeled as a “VP, Developer Experience at JetBrains”. The design uses dark blue and teal backgrounds with coral and fish illustrations. 2 minutes
Community

Payara Podcast – Why Open Source is the Future of Business Innovation – A Conversation with Arun Gupta

Open source is no longer a developer-only concern — it’s at the heart of how modern businesses innovate, build […]