Class TracingConfigurationItem
- java.lang.Object
-
- org.apache.ignite.internal.dto.IgniteDataTransferObject
-
- org.apache.ignite.internal.management.tracing.TracingConfigurationItem
-
- All Implemented Interfaces:
Externalizable,Serializable
public class TracingConfigurationItem extends IgniteDataTransferObject
Data transfer object that contains scope, label, sampling rate and set of included scopes.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TracingConfigurationItem()Default constructor.TracingConfigurationItem(Scope scope, String lb, Double samplingRate, Set<Scope> includedScopes)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Set<Scope>includedScopes()Stringlabel()protected voidreadExternalData(byte protoVer, ObjectInput in)Load object's specific data content.DoublesamplingRate()Scopescope()StringtoString()protected voidwriteExternalData(ObjectOutput out)Save object's specific data content.-
Methods inherited from class org.apache.ignite.internal.dto.IgniteDataTransferObject
getProtocolVersion, readExternal, toList, toSet, writeExternal
-
-
-
-
Constructor Detail
-
TracingConfigurationItem
public TracingConfigurationItem()
Default constructor.
-
TracingConfigurationItem
public TracingConfigurationItem(Scope scope, String lb, Double samplingRate, Set<Scope> includedScopes)
Constructor.- Parameters:
scope- Specifies theScopeof a trace's root span to which some specific tracing configuration will be applied.lb- Specifies the label of a traced operation. It's an optional attribute.samplingRate- Number between 0 and 1 that more or less reflects the probability of sampling specific trace. 0 and 1 have special meaning here, 0 means never 1 means always. Default value is 0 (never).includedScopes- Set ofScopethat defines which sub-traces will be included in given trace. In other words, if child's span scope is equals to parent's scope or it belongs to the parent's span included scopes, then given child span will be attached to the current trace, otherwise it'll be skipped. SeeSpan.isChainable(Scope)for more details.
-
-
Method Detail
-
scope
public Scope scope()
- Returns:
- Specifies the of a trace's root span to which some specific tracing configuration will be applied. It's a mandatory attribute.
-
label
public String label()
- Returns:
- Specifies the label of a traced operation. It's an optional attribute.
-
samplingRate
public Double samplingRate()
- Returns:
- Number between 0 and 1 that more or less reflects the probability of sampling specific trace. 0 and 1 have special meaning here, 0 means never 1 means always. Default value is 0 (never).
-
includedScopes
public Set<Scope> includedScopes()
- Returns:
- Set of that defines which sub-traces will be included in given trace. In other words, if child's span scope is equals to parent's scope or it belongs to the parent's span included scopes, then given child span will be attached to the current trace, otherwise it'll be skipped. See for more details.
-
writeExternalData
protected void writeExternalData(ObjectOutput out) throws IOException
Save object's specific data content.- Specified by:
writeExternalDatain classIgniteDataTransferObject- Parameters:
out- Output object to write data content.- Throws:
IOException- If I/O errors occur.
-
readExternalData
protected void readExternalData(byte protoVer, ObjectInput in) throws IOException, ClassNotFoundExceptionLoad object's specific data content.- Specified by:
readExternalDatain classIgniteDataTransferObject- Parameters:
protoVer- Input object version.in- Input object to load data content.- Throws:
IOException- If I/O errors occur.ClassNotFoundException- If the class for an object being restored cannot be found.
-
-