Class HttpSpanUtil


  • public class HttpSpanUtil
    extends Object
    • Constructor Detail

      • HttpSpanUtil

        public HttpSpanUtil()
    • Method Detail

      • method

        public static String method​(Map<String,​String> tags)
        Get HTTP Method name with either old and new Semantic Attribute for Method.
        Parameters:
        tags - Map containing span tags
        Returns:
        String HTTP Method name
      • spanName

        public static String spanName​(Map<String,​String> tags,
                                      String route)
        Generates HTTP Span name
        Parameters:
        tags - Map of Span tags with HTTP Method entry
        route - String HTTP Route path
        Returns:
        String span name
      • spanName

        public static String spanName​(String method,
                                      String route)
        Generates HTTP Span name
        Parameters:
        method - String HTTP Method name
        route - String HTTP Route path
        Returns:
        String span name
      • apiKitRoutePath

        public static String apiKitRoutePath​(Map<String,​String> tags,
                                             String rootSpanName)
        Uses flow names to build a new span name
        Parameters:
        tags - Map containing span tags
        rootSpanName - String
        Returns:
        String name of the span using apikit route path