Top Description Methods
com.mysql.cj.telemetry

public Interface TelemetryScope

extends AutoCloseable
Known Direct Implementers
com.mysql.cj.otel.OpenTelemetryScope, com.mysql.cj.telemetry.NoopTelemetryScope

A telemetry context scope wrapper that hides all specific details from the underlying telemetry library. A default no-op implementation is provided so that telemetry may be turned off with minimal impact to the driver code.

Method Summary

Modifier and TypeMethod and Description
public default void
close()

Implements java.lang.AutoCloseable.close.

AutoCloseable#close() that must be used to end this context scope and, thus, make it possible to create new span within try-with-resources blocks.

Method Detail

closeback to summary
public default void close()

Implements java.lang.AutoCloseable.close.

AutoCloseable#close() that must be used to end this context scope and, thus, make it possible to create new span within try-with-resources blocks.

Annotations
@Override