/** * Returns the short span details in form of StyledString. This method returns details if on of * these situations is matched: * * <ul> * <li>Propagation type is known for a span. * <li>Operation name exists as a tag. * <li>Method ident exists in the span. * </ul> * * @param span * {@link Span} * @param cachedDataService * Cached data service to load the method ident information from. * @return Returns {@link StyledString} if information in the span is enough or * <code>null</code> if details can not be constructed. */ public static StyledString getSpanDetailsShort(Span span, ICachedDataService cachedDataService) { return getSpanDetailsShort(span.getPropagationType(), span.getMethodIdent(), span.getTags(), cachedDataService); }
/** * Returns the full span details in form of StyledString. This method returns details if on of * these situations is matched: * * <ul> * <li>Propagation type is known for a span. * <li>Operation name exists as a tag. * <li>Method ident exists in the span. * </ul> * * @param span * {@link Span} * @param cachedDataService * Cached data service to load the method ident information from. * @return Returns {@link StyledString} if information in the span is enough or * <code>null</code> if details can not be constructed. */ public static StyledString getSpanDetailsFull(Span span, ICachedDataService cachedDataService) { return getSpanDetailsFull(span.isCaller(), span.getPropagationType(), span.getMethodIdent(), span.getTags(), cachedDataService); }