public class DefaultSnapshotterSpanFactory extends Object implements SnapshotterSpanFactory
SnapshotterSpanFactory. Can be configured to include the aggregate type in the
span name (true by default) and to create a separate trace for the creation of the snapshot (false by default).| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultSnapshotterSpanFactory.Builder
Builder class to instantiate a
DefaultSnapshotterSpanFactory. |
| Modifier | Constructor and Description |
|---|---|
protected |
DefaultSnapshotterSpanFactory(DefaultSnapshotterSpanFactory.Builder builder)
Creates a new
DefaultSnapshotterSpanFactory using the provided builder. |
| Modifier and Type | Method and Description |
|---|---|
static DefaultSnapshotterSpanFactory.Builder |
builder()
Creates a new
DefaultSnapshotterSpanFactory.Builder to build a DefaultSnapshotterSpanFactory with. |
Span |
createCreateSnapshotSpan(String aggregateType,
String aggregateIdentifier)
Creates a new
Span that represents the actual creation of a snapshot. |
Span |
createScheduleSnapshotSpan(String aggregateType,
String aggregateIdentifier)
Creates a new
Span that represents the scheduling of snapshot creation to the snapshotter's executor. |
protected DefaultSnapshotterSpanFactory(DefaultSnapshotterSpanFactory.Builder builder)
DefaultSnapshotterSpanFactory using the provided builder.builder - The builder to build the DefaultSnapshotterSpanFactory from.public Span createScheduleSnapshotSpan(String aggregateType, String aggregateIdentifier)
SnapshotterSpanFactorySpan that represents the scheduling of snapshot creation to the snapshotter's executor.createScheduleSnapshotSpan in interface SnapshotterSpanFactoryaggregateType - The aggregate's type.aggregateIdentifier - The aggregate's identifier.Span representing the scheduling of snapshot creation.public Span createCreateSnapshotSpan(String aggregateType, String aggregateIdentifier)
SnapshotterSpanFactorySpan that represents the actual creation of a snapshot. The creation
of a snapshot might be done in a separate thread depending on the implementation of the Snapshotter.createCreateSnapshotSpan in interface SnapshotterSpanFactoryaggregateType - The aggregate's type.aggregateIdentifier - The aggregate's identifier.Span representing the creation of a snapshot.public static DefaultSnapshotterSpanFactory.Builder builder()
DefaultSnapshotterSpanFactory.Builder to build a DefaultSnapshotterSpanFactory with. The default values are:
separateTrace defaults to trueaggregateTypeInSpanName defaults to truespanFactory is a required field and should be provided.DefaultSnapshotterSpanFactory.Builder to build a DefaultSnapshotterSpanFactory with.Copyright © 2010–2025. All rights reserved.