@IgniteSpiMultipleInstancesSupport(value=true) @IgniteSpiConsistencyChecked(optional=true) public class OpenCensusTracingSpi extends IgniteSpiAdapter implements TracingSpi<OpenCensusSpanAdapter>
IgniteConfiguration cfg;
cfg.setTracingSpi(new OpenCensusTracingSpi());
If you don't have OpenCensus Tracing:
IgniteConfiguration cfg;
cfg.setTracingSpi(new OpenCensusTracingSpi(new ZipkinExporterHandler(...)));
See constructors description for detailed explanation.ignite, igniteInstanceName, log| Constructor and Description |
|---|
OpenCensusTracingSpi()
This constructor is used if environment (JVM) already has OpenCensus tracing.
|
OpenCensusTracingSpi(io.opencensus.trace.export.SpanExporter.Handler... exporters)
This constructor is used if environment (JVM) hasn't OpenCensus tracing.
|
| Modifier and Type | Method and Description |
|---|---|
OpenCensusSpanAdapter |
create(@NotNull String name,
@Nullable byte[] parentSerializedSpan) |
@NotNull OpenCensusSpanAdapter |
create(@NotNull String name,
@Nullable OpenCensusSpanAdapter parentSpan) |
String |
getName() |
byte[] |
serialize(@NotNull OpenCensusSpanAdapter span) |
void |
spiStart(String igniteInstanceName) |
void |
spiStop() |
byte |
type() |
addTimeoutObject, assertParameter, checkConfigurationConsistency0, clientFailureDetectionTimeout, configInfo, createSpiAttributeName, failureDetectionTimeout, failureDetectionTimeoutEnabled, failureDetectionTimeoutEnabled, getConsistentAttributeNames, getExceptionRegistry, getLocalNode, getNodeAttributes, getSpiContext, ignite, initFailureDetectionTimeout, injectables, injectResources, isNodeStopping, onBeforeStart, onClientDisconnected, onClientReconnected, onContextDestroyed, onContextDestroyed0, onContextInitialized, onContextInitialized0, registerMBean, removeTimeoutObject, setName, started, startInfo, startStopwatch, stopInfo, unregisterMBeanclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetNodeAttributes, onClientDisconnected, onClientReconnected, onContextDestroyed, onContextInitializedpublic OpenCensusTracingSpi()
Tracing.getExportComponent()public OpenCensusTracingSpi(io.opencensus.trace.export.SpanExporter.Handler... exporters)
exporters - Exporters.public OpenCensusSpanAdapter create(@NotNull @NotNull String name, @Nullable @Nullable byte[] parentSerializedSpan) throws Exception
create in interface TracingSpi<OpenCensusSpanAdapter>Exception@NotNull public @NotNull OpenCensusSpanAdapter create(@NotNull @NotNull String name, @Nullable @Nullable OpenCensusSpanAdapter parentSpan)
create in interface TracingSpi<OpenCensusSpanAdapter>public byte[] serialize(@NotNull
@NotNull OpenCensusSpanAdapter span)
serialize in interface TracingSpi<OpenCensusSpanAdapter>public String getName()
getName in interface IgniteSpigetName in class IgniteSpiAdapterpublic void spiStart(String igniteInstanceName) throws IgniteSpiException
spiStart in interface IgniteSpiIgniteSpiExceptionpublic void spiStop()
throws IgniteSpiException
spiStop in interface IgniteSpiIgniteSpiExceptionpublic byte type()
type in interface TracingSpi<OpenCensusSpanAdapter>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 8.9.29 Release Date : January 8 2026