Package org.eclipse.hono.util
Class TenantTracingConfig
- java.lang.Object
-
- org.eclipse.hono.util.TenantTracingConfig
-
public class TenantTracingConfig extends Object
A tenant specific tracing configuration.
-
-
Constructor Summary
Constructors Constructor Description TenantTracingConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TracingSamplingMode
getSamplingMode()
Gets the sampling mode that defines in how far spans created when processing messages for a tenant shall be recorded (sampled) by the tracing system.Map<String,TracingSamplingMode>
getSamplingModePerAuthId()
Gets the Map that contains the sampling mode defined per auth-id.void
setSamplingMode(TracingSamplingMode samplingMode)
Sets the sampling mode that defines in how far spans created when processing messages for a tenant shall be recorded (sampled) by the tracing system.void
setSamplingModePerAuthId(Map<String,TracingSamplingMode> samplingModePerAuthId)
Sets the Map that contains the sampling mode defined per auth-id.
-
-
-
Method Detail
-
getSamplingMode
public TracingSamplingMode getSamplingMode()
Gets the sampling mode that defines in how far spans created when processing messages for a tenant shall be recorded (sampled) by the tracing system.- Returns:
- The sampling mode or
null
if not set.
-
setSamplingMode
public void setSamplingMode(TracingSamplingMode samplingMode)
Sets the sampling mode that defines in how far spans created when processing messages for a tenant shall be recorded (sampled) by the tracing system.- Parameters:
samplingMode
- The sampling mode.
-
getSamplingModePerAuthId
public Map<String,TracingSamplingMode> getSamplingModePerAuthId()
Gets the Map that contains the sampling mode defined per auth-id.The sampling mode for a specific auth-id overrides the value returned by
getSamplingMode()
.- Returns:
- Map with auth-id as key and sampling mode as value.
-
setSamplingModePerAuthId
public void setSamplingModePerAuthId(Map<String,TracingSamplingMode> samplingModePerAuthId)
Sets the Map that contains the sampling mode defined per auth-id.The sampling mode for a specific auth-id overrides the value returned by
getSamplingMode()
.- Parameters:
samplingModePerAuthId
- Map with auth-id as key and sampling mode as value.
-
-