Skip to content

io microsphere metrics micrometer instrument binder jdbc p6spy MicrometerJdbcEventListener

github-actions[bot] edited this page Jul 17, 2026 · 1 revision

MicrometerJdbcEventListener

Type: Class | Module: microsphere-observability-micrometer | Package: io.microsphere.metrics.micrometer.instrument.binder.jdbc.p6spy | Since: 1.0.0

Source: microsphere-observability-micrometer/src/main/java/io/microsphere/metrics/micrometer/instrument/binder/jdbc/p6spy/MicrometerJdbcEventListener.java

Overview

Micrometer JdbcEventListener

Declaration

public class MicrometerJdbcEventListener extends LoggingEventListener

Author: Mercy

Version Information

  • Introduced in: 1.0.0
  • Current Project Version: 0.2.0-SNAPSHOT

Version Compatibility

This component is tested and compatible with the following Java versions:

Java Version Status
Java 17 ✅ Compatible
Java 21 ✅ Compatible
Java 25 ✅ Compatible

Usage

Maven Dependency

Add the following dependency to your pom.xml:

<dependency>
    <groupId>io.github.microsphere-projects</groupId>
    <artifactId>microsphere-observability-micrometer</artifactId>
    <version>${microsphere-observability.version}</version>
</dependency>

Tip: Use the BOM (microsphere-observability-dependencies) for consistent version management. See the Getting Started guide.

Import

import io.microsphere.metrics.micrometer.instrument.binder.jdbc.p6spy.MicrometerJdbcEventListener;

API Reference

Public Methods

Method Description
setRegistry The default value of slow SQL time threshold in seconds : 1 seconds
getSlowSQLThresholdNanos
setSlowSQLThresholdNanos

Method Details

setRegistry

public static void setRegistry(MeterRegistry registry)

The default value of slow SQL time threshold in seconds : 1 seconds / public static final String DEFAULT_SLOW_SQL_TIME_THRESHOLD_PROPERTY_VALUE = "1";

/** The property name of slow SQL time threshold in seconds : "microsphere.jdbc.slow-sql.time.threshold", default value : 1 seconds /


This documentation was auto-generated from the source code of microsphere-observability.

Clone this wiki locally