Class NoopTracingConfigurationManager
- java.lang.Object
-
- org.apache.ignite.internal.processors.tracing.configuration.NoopTracingConfigurationManager
-
- All Implemented Interfaces:
TracingConfigurationManager
public final class NoopTracingConfigurationManager extends Object implements TracingConfigurationManager
Noop tracing configuration manager. To be used mainly withNoopTracing.
-
-
Field Summary
Fields Modifier and Type Field Description static NoopTracingConfigurationManagerINSTANCE-
Fields inherited from interface org.apache.ignite.spi.tracing.TracingConfigurationManager
DEFAULT_COMMUNICATION_CONFIGURATION, DEFAULT_DISCOVERY_CONFIGURATION, DEFAULT_EXCHANGE_CONFIGURATION, DEFAULT_SQL_CONFIGURATION, DEFAULT_TX_CONFIGURATION, NOOP_CONFIGURATION
-
-
Constructor Summary
Constructors Constructor Description NoopTracingConfigurationManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull TracingConfigurationParametersget(@NotNull TracingConfigurationCoordinates coordinates)Get the most specific tracing parameters for the specified tracing coordinates (scope, label, etc.).@NotNull Map<TracingConfigurationCoordinates,TracingConfigurationParameters>getAll(@Nullable Scope scope)List all pairs of tracing configuration coordinates and tracing configuration parameters or list all pairs of tracing configuration and parameters for the specific scope.voidreset(@NotNull TracingConfigurationCoordinates coordinates)Reset tracing configuration for the specific tracing coordinates (scope, label, etc.) to default values.voidresetAll(@Nullable Scope scope)Reset tracing configuration for the specific scope, or all tracing configurations if scope not specified.voidset(@NotNull TracingConfigurationCoordinates coordinates, @NotNull TracingConfigurationParameters parameters)Set new tracing configuration for the specific tracing coordinates (scope, label, etc.).
-
-
-
Field Detail
-
INSTANCE
public static final NoopTracingConfigurationManager INSTANCE
-
-
Method Detail
-
set
public void set(@NotNull @NotNull TracingConfigurationCoordinates coordinates, @NotNull @NotNull TracingConfigurationParameters parameters)Set new tracing configuration for the specific tracing coordinates (scope, label, etc.). If tracing configuration with specified coordinates already exists it'll be overrided, otherwise new one will be created.- Specified by:
setin interfaceTracingConfigurationManager- Parameters:
coordinates-TracingConfigurationCoordinatesSpecific set of locators likeScopeand label, that defines subset of traces and/or spans that'll use given configuration.parameters-TracingConfigurationParameterse.g. sampling rate, set of included scopes etc.
-
get
@NotNull public @NotNull TracingConfigurationParameters get(@NotNull @NotNull TracingConfigurationCoordinates coordinates)
Get the most specific tracing parameters for the specified tracing coordinates (scope, label, etc.). The most specific means:- If there's tracing configuration that matches all tracing configuration attributes (scope and label) — it'll be returned.
- If there's no tracing configuration with specified label, or label wasn't specified — scope specific tracing configuration will be returned.
- If there's no tracing configuration with specified scope — default scope specific configuration will be returned.
- Specified by:
getin interfaceTracingConfigurationManager- Parameters:
coordinates-TracingConfigurationCoordinatesSpecific set of locators likeScopeand label that defines a subset of traces and/or spans that'll use given configuration.- Returns:
TracingConfigurationParametersinstance.
-
getAll
@NotNull public @NotNull Map<TracingConfigurationCoordinates,TracingConfigurationParameters> getAll(@Nullable @Nullable Scope scope)
List all pairs of tracing configuration coordinates and tracing configuration parameters or list all pairs of tracing configuration and parameters for the specific scope.- Specified by:
getAllin interfaceTracingConfigurationManager- Parameters:
scope- Nullable scope of tracing configuration to be retrieved. If null - all configuration will be returned.- Returns:
- The whole set of tracing configuration.
-
reset
public void reset(@NotNull @NotNull TracingConfigurationCoordinates coordinates)Reset tracing configuration for the specific tracing coordinates (scope, label, etc.) to default values. Please pay attention, that there's no default values for label specific coordinates, so such kinds of configurations will be removed.- Specified by:
resetin interfaceTracingConfigurationManager- Parameters:
coordinates-TracingConfigurationCoordinatesspecific set of locators likeScopeand label that defines a subset of traces and/or spans that will be reset.
-
resetAll
public void resetAll(@Nullable @Nullable Scope scope) throws IgniteExceptionReset tracing configuration for the specific scope, or all tracing configurations if scope not specified.- Specified by:
resetAllin interfaceTracingConfigurationManager- Parameters:
scope-Scopethat defines a set of applicable tracing configurations.- Throws:
IgniteException- If failed to reset tracing configuration.
-
-