- java.lang.Object
-
- io.helidon.tracing.config.TracingConfigUtil
-
public final class TracingConfigUtil extends Object
Utility to get the current tracing configuration. The tracing configuration must be registered in currentContext. This can be achieved either through configuration of the global context and registering it with a server component, or by using a server specific approach, such asRouting.Builder#register(WebTracingConfig).
-
-
Field Summary
Fields Modifier and Type Field Description static ObjectOUTBOUND_SPAN_QUALIFIERQualifier for outboundio.opentracing.SpanContextas registered withContext.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SpanTracingConfigspanConfig(String component, String spanName)Get the configuration of a single span from currentContext.static SpanTracingConfigspanConfig(String component, String spanName, boolean defaultEnabled)Get the configuration of a single span from currentContext.static SpanTracingConfigspanConfig(String component, String spanName, Context context)Get the configuration of a single span from the providedContext.
-
-
-
Method Detail
-
spanConfig
public static SpanTracingConfig spanConfig(String component, String spanName)
Get the configuration of a single span from currentContext.- Parameters:
component- component tracing this spanspanName- name of the span to trace- Returns:
- span configuration, including configuration of span logs
-
spanConfig
public static SpanTracingConfig spanConfig(String component, String spanName, Context context)
Get the configuration of a single span from the providedContext.- Parameters:
component- component tracing this spanspanName- name of the span to tracecontext- context to get tracing configuration from- Returns:
- span configuration, including configuration of span logs
-
spanConfig
public static SpanTracingConfig spanConfig(String component, String spanName, boolean defaultEnabled)
Get the configuration of a single span from currentContext.- Parameters:
component- component tracing this spanspanName- name of the span to tracedefaultEnabled- whether tracing should be enabled by default- Returns:
- span configuration, including configuration of span logs
-
-