PolyAPI  >  Learn More  >  Blog

Shared Metrics in Release 15

Feature Highlight 7

In Release 15, PolyAPI introduced advanced metrics capabilities that give developers precise control over tracking, analyzing, and troubleshooting API interactions. By focusing on environment-level metrics, shared execution tracking, and improved troubleshooting features, PolyAPI enhances the API development experience, enabling teams to maintain high standards of performance and accountability.

Environment-Level Metrics Collection

PolyAPI’s Environment Metrics Collection allows teams to control metrics collection at the environment level, optimizing database efficiency and maintaining a leaner monitoring approach. When this feature is active, PolyAPI automatically logs performance data to the database, ensuring accurate and timely insights into environment-specific API interactions. If desired, teams can disable this feature without losing access to historical data; previously recorded metrics remain accessible for review and analysis even when new metrics are not actively logged. This flexibility is invaluable for teams managing multiple environments, such as development, staging, and production, as it allows for targeted metric collection aligned with each environment’s needs.

Our UI complements this feature, offering quick toggling and oversight capabilities. Developers can effortlessly monitor or halt data collection as environments evolve, supporting agile development and tailored monitoring. This means metrics collection can be as dynamic as the environments themselves, adapting to changes in focus, resource allocation, or project scope.

Shared Metrics for Webhook to Server Functions

PolyAPI further streamlines performance tracking by integrating Shared Metrics for Webhook to Server Functions. Using a single execution ID, the metrics endpoint provides a holistic view of performance metrics across both webhook handlers and their associated server functions. In API flows where webhook-triggered functions play a key role, this unified tracking ensures comprehensive monitoring, simplifying the process for developers and eliminating the need to cross-reference metrics from disparate components.

By aligning webhook and server function performance data, developers can access detailed insights into the entire execution chain. This streamlined approach helps identify bottlenecks, pinpoint delays, and address latency issues in real time. Shared metrics tracking proves particularly valuable in complex, event-driven workflows, where timing and response rates are critical to performance. Access to this consolidated data empowers teams to optimize API reliability and maintain a consistently high-quality user experience.

Execution IDs Recorded in Job Execution Record

Error troubleshooting is a significant aspect of API development, and PolyAPI’s addition of Execution IDs in the Job Execution Record provides a powerful tool for efficient debugging and analysis. With each execution logged under a unique execution ID, developers gain a precise reference point for every API job, helping them trace specific actions and diagnose issues effectively.

If a server function encounters an error, the recorded execution ID enables swift access to relevant logs and metrics, allowing for targeted troubleshooting. Instead of sifting through extensive logs, developers can immediately zero in on the problematic execution, reducing downtime and expediting the resolution process. This feature ensures that even in fast-paced API environments, development teams can maintain performance visibility and reliability.

Check out the other product highlights that PolyAPI offers, If you would like to see the metrics tools in action, contact us for a quick demo!

Share this Article: