Search in sources :

Example 1 with ComponentMetaDataDecorator

use of org.eclipse.hono.service.http.ComponentMetaDataDecorator in project hono by eclipse.

the class AbstractVertxBasedHttpProtocolAdapter method createTracingHandler.

private TracingHandler createTracingHandler() {
    final Map<String, String> customTags = new HashMap<>();
    customTags.put(Tags.COMPONENT.getKey(), getTypeName());
    addCustomTags(customTags);
    final List<WebSpanDecorator> decorators = new ArrayList<>();
    decorators.add(new ComponentMetaDataDecorator(customTags));
    addCustomSpanDecorators(decorators);
    return new TracingHandler(tracer, decorators);
}
Also used : WebSpanDecorator(org.eclipse.hono.service.http.WebSpanDecorator) HashMap(java.util.HashMap) ArrayList(java.util.ArrayList) ComponentMetaDataDecorator(org.eclipse.hono.service.http.ComponentMetaDataDecorator) TracingHandler(org.eclipse.hono.service.http.TracingHandler)

Aggregations

ArrayList (java.util.ArrayList)1 HashMap (java.util.HashMap)1 ComponentMetaDataDecorator (org.eclipse.hono.service.http.ComponentMetaDataDecorator)1 TracingHandler (org.eclipse.hono.service.http.TracingHandler)1 WebSpanDecorator (org.eclipse.hono.service.http.WebSpanDecorator)1