Class HttpSpanUtil
- java.lang.Object
-
- com.avioconsulting.mule.opentelemetry.internal.processor.util.HttpSpanUtil
-
public class HttpSpanUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description HttpSpanUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringapiKitRoutePath(Map<String,String> tags, String rootSpanName)Uses flow names to build a new span namestatic Stringmethod(Map<String,String> tags)Get HTTP Method name with either old and new Semantic Attribute for Method.static StringspanName(String method, String route)Generates HTTP Span namestatic StringspanName(Map<String,String> tags, String route)Generates HTTP Span name
-
-
-
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-Mapcontaining span tags- Returns:
- String HTTP Method name
-
spanName
public static String spanName(Map<String,String> tags, String route)
Generates HTTP Span name
-
-