Class ZipkinIdProvider

java.lang.Object
com.helixframework.resttemplate.tracing.zipkin.ZipkinIdProvider
All Implemented Interfaces:
IdProvider

public class ZipkinIdProvider extends Object implements IdProvider
Generates trace and span identifiers that are Zipkin compliant.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    protected static class 
    The code in this class came from the Zipkin repository v1.16.2 (https://github.com/openzipkin/zipkin/blob/1.16.2/zipkin/src/main/java/zipkin/internal/Util.java) and licensed under the Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0).
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Creates a span id.
    Creates a trace id.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ZipkinIdProvider

      public ZipkinIdProvider()
  • Method Details

    • traceId

      public String traceId()
      Description copied from interface: IdProvider
      Creates a trace id.
      Specified by:
      traceId in interface IdProvider
      Returns:
      trace id
    • spanId

      public String spanId()
      Description copied from interface: IdProvider
      Creates a span id.
      Specified by:
      spanId in interface IdProvider
      Returns:
      span id