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);
}
Aggregations