Interface TracingSpi<S extends SpiSpecificSpan>

    • Method Detail

      • create

        S create​(@NotNull
                 @NotNull String name,
                 @Nullable
                 @org.jetbrains.annotations.Nullable byte[] serializedSpan)
          throws Exception
        Creates Span given name and explicit parent.
        Parameters:
        name - Name of span to create.
        serializedSpan - Parent span as serialized bytes.
        Returns:
        Created span.
        Throws:
        Exception - If failed to deserialize patent span.
      • create

        @NotNull
        S create​(@NotNull
                 @NotNull String name,
                 @Nullable
                 S parentSpan)
        Creates Span given name and explicit parent.
        Parameters:
        name - Name of span to create.
        parentSpan - Parent span.
        Returns:
        Span instance.
      • serialize

        byte[] serialize​(@NotNull
                         S span)
        Serializes span to byte array to send context over network.
        Parameters:
        span - Span.
        Returns:
        Span instance.
      • type

        byte type()
        Returns:
        type of tracing spi as byte.