Class OpenCensusTracingSpi

    • Constructor Detail

      • OpenCensusTracingSpi

        public OpenCensusTracingSpi()
        This constructor is used if environment (JVM) already has OpenCensus tracing. In this case traces from the node will go trough externally registered exporters by an user himself.
        See Also:
        Tracing.getExportComponent()
      • OpenCensusTracingSpi

        public OpenCensusTracingSpi​(io.opencensus.trace.export.SpanExporter.Handler... exporters)
        This constructor is used if environment (JVM) hasn't OpenCensus tracing. In this case provided exporters will start and traces from the node will go through it.
        Parameters:
        exporters - Exporters.
    • Method Detail

      • create

        public OpenCensusSpanAdapter create​(@NotNull
                                            @NotNull String name,
                                            @Nullable
                                            @org.jetbrains.annotations.Nullable byte[] parentSerializedSpan)
                                     throws Exception
        Creates Span given name and explicit parent.
        Specified by:
        create in interface TracingSpi<OpenCensusSpanAdapter>
        Parameters:
        name - Name of span to create.
        parentSerializedSpan - Parent span as serialized bytes.
        Returns:
        Created span.
        Throws:
        Exception - If failed to deserialize patent span.
      • spiStart

        public void spiStart​(String igniteInstanceName)
                      throws IgniteSpiException
        This method is called to start SPI. After this method returns successfully kernel assumes that SPI is fully operational.
        Specified by:
        spiStart in interface IgniteSpi
        Parameters:
        igniteInstanceName - Name of Ignite instance this SPI is being started for (null for default Ignite instance).
        Throws:
        IgniteSpiException - Throws in case of any error during SPI start.
      • spiStop

        public void spiStop()
                     throws IgniteSpiException
        This method is called to stop SPI. After this method returns kernel assumes that this SPI is finished and all resources acquired by it are released.

        Note that this method can be called at any point including during recovery of failed start. It should make no assumptions on what state SPI will be in when this method is called.

        Specified by:
        spiStop in interface IgniteSpi
        Throws:
        IgniteSpiException - Thrown in case of any error during SPI stop.