public class GridTracingConfigurationManager extends Object implements TracingConfigurationManager
Modifier and Type | Field and Description |
---|---|
protected GridKernalContext |
ctx
Kernal context.
|
protected IgniteLogger |
log
Grid logger.
|
static String |
WARNING_MSG_TRACING_CONFIG_UPDATE_FAILED_COORDINATES |
static String |
WARNING_MSG_TRACING_CONFIG_UPDATE_FAILED_SCOPE |
DEFAULT_COMMUNICATION_CONFIGURATION, DEFAULT_DISCOVERY_CONFIGURATION, DEFAULT_EXCHANGE_CONFIGURATION, DEFAULT_SQL_CONFIGURATION, DEFAULT_TX_CONFIGURATION, NOOP_CONFIGURATION
Constructor and Description |
---|
GridTracingConfigurationManager(@NotNull GridKernalContext ctx)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
@NotNull TracingConfigurationParameters |
get(@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.
|
void |
reset(@NotNull TracingConfigurationCoordinates coordinates)
Reset tracing configuration for the specific tracing coordinates (scope, label, etc.) to default values.
|
void |
resetAll(@Nullable Scope scope)
Reset tracing configuration for the specific scope, or all tracing configurations if scope not specified.
|
void |
set(@NotNull TracingConfigurationCoordinates coordinates,
@NotNull TracingConfigurationParameters parameters)
Set new tracing configuration for the specific tracing coordinates (scope, label, etc.).
|
public static final String WARNING_MSG_TRACING_CONFIG_UPDATE_FAILED_COORDINATES
public static final String WARNING_MSG_TRACING_CONFIG_UPDATE_FAILED_SCOPE
@GridToStringExclude protected final GridKernalContext ctx
@GridToStringExclude protected final IgniteLogger log
public GridTracingConfigurationManager(@NotNull @NotNull GridKernalContext ctx)
ctx
- Context.public void set(@NotNull @NotNull TracingConfigurationCoordinates coordinates, @NotNull @NotNull TracingConfigurationParameters parameters)
set
in interface TracingConfigurationManager
coordinates
- TracingConfigurationCoordinates
Specific set of locators like Scope
and label,
that defines subset of traces and/or spans that'll use given configuration.parameters
- TracingConfigurationParameters
e.g. sampling rate, set of included scopes etc.@NotNull public @NotNull TracingConfigurationParameters get(@NotNull @NotNull TracingConfigurationCoordinates coordinates)
get
in interface TracingConfigurationManager
coordinates
- TracingConfigurationCoordinates
Specific set of locators like Scope
and label
that defines a subset of traces and/or spans that'll use given configuration.TracingConfigurationParameters
instance.@NotNull public @NotNull Map<TracingConfigurationCoordinates,TracingConfigurationParameters> getAll(@Nullable @Nullable Scope scope)
getAll
in interface TracingConfigurationManager
scope
- Nullable scope of tracing configuration to be retrieved.
If null - all configuration will be returned.public void reset(@NotNull @NotNull TracingConfigurationCoordinates coordinates)
reset
in interface TracingConfigurationManager
coordinates
- TracingConfigurationCoordinates
specific set of locators like Scope
and label
that defines a subset of traces and/or spans that will be reset.public void resetAll(@Nullable @Nullable Scope scope) throws IgniteException
resetAll
in interface TracingConfigurationManager
scope
- Scope
that defines a set of applicable tracing configurations.IgniteException
- If failed to reset tracing configuration.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.10.0 Release Date : March 10 2021