java.lang.Object
io.helidon.tracing.config.Traceable
io.helidon.tracing.config.ComponentTracingConfig
A component is a single "layer" of the application that can trace.
Component examples:
- web-server: webServer adds the root tracing span + two additional spans (content-read and content-write)
- security: security adds the overall request security span, a span for authentication ("security:atn"), a span for authorization "security:atz", and a span for response processing ("security:response")
- jax-rs: JAX-RS integration adds spans for overall resource invocation
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Fluent API builder forComponentTracingConfig
. -
Field Summary
Modifier and TypeFieldDescriptionstatic final ComponentTracingConfig
Disabled component - all subsequent calls return disabled spans and logs.static final ComponentTracingConfig
Enabled component - all subsequent calls return enabled spans and logs. -
Constructor Summary
ModifierConstructorDescriptionprotected
ComponentTracingConfig
(String name) A new named component. -
Method Summary
Modifier and TypeMethodDescriptionFluent API builder for traced component.static ComponentTracingConfig
Create a new traced component configuration fromConfig
.protected abstract Optional
<SpanTracingConfig> Get a traced span configuration for a named span.Get a traced span configuration for a named span.Get a traced span configuration for a named span.
-
Field Details
-
DISABLED
Disabled component - all subsequent calls return disabled spans and logs. -
ENABLED
Enabled component - all subsequent calls return enabled spans and logs.
-
-
Constructor Details
-
ComponentTracingConfig
A new named component.- Parameters:
name
- name of the component
-
-
Method Details
-
getSpan
Get a traced span configuration for a named span.- Parameters:
spanName
- name of the span in this component- Returns:
- configuration of that span if present
-
span
Get a traced span configuration for a named span.- Parameters:
spanName
- name of a span in this component- Returns:
- configuration of the span, or enabled configuration if not configured
- See Also:
-
span
Get a traced span configuration for a named span.- Parameters:
spanName
- name of a span in this componentenabledByDefault
- whether the result is enabled if a configuration is not present- Returns:
- configuration of the span, or a span configuration enabled or disabled depending on
enabledByDefault
if not configured
-
builder
Fluent API builder for traced component.- Parameters:
name
- the name of the component- Returns:
- a new builder instance
-
create
Create a new traced component configuration fromConfig
.- Parameters:
name
- name of the componentconfig
- config for a new component- Returns:
- a new traced component configuration
-