java.lang.Object
io.helidon.tracing.config.TracingConfigUtil
Utility to get the current tracing configuration.
The tracing configuration must be registered in current
Context.
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 as Routing.Builder#register(WebTracingConfig).-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
Field Details
-
OUTBOUND_SPAN_QUALIFIER
Qualifier for outboundio.opentracing.SpanContextas registered withContext.
-
-
Method Details
-
spanConfig
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
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
-