private SpanNamer spanNamer() { if (this.spanNamer == null) { try { this.spanNamer = this.beanFactory.getBean(SpanNamer.class); } catch (NoSuchBeanDefinitionException e) { log.warn( "SpanNamer bean not found - will provide a manually created instance"); return new DefaultSpanNamer(); } } return this.spanNamer; }
@Override public String name(Object object, String defaultValue) { SpanName annotation = annotation(object); String spanName = annotation != null ? annotation.value() : object.toString(); // If there is no overridden toString method we'll put a constant value if (isDefaultToString(object, spanName)) { return defaultValue; } return spanName; }
@Override public String name(Object object, String defaultValue) { SpanName annotation = annotation(object); String spanName = annotation != null ? annotation.value() : object.toString(); // If there is no overridden toString method we'll put a constant value if (isDefaultToString(object, spanName)) { return defaultValue; } return spanName; }
@Bean @ConditionalOnMissingBean SpanNamer sleuthSpanNamer() { return new DefaultSpanNamer(); }
private SpanNamer spanNamer() { if (this.spanNamer == null) { try { this.spanNamer = this.beanFactory.getBean(SpanNamer.class); } catch (NoSuchBeanDefinitionException e) { log.warn( "SpanNamer bean not found - will provide a manually created instance"); return new DefaultSpanNamer(); } } return this.spanNamer; }
@Bean @ConditionalOnMissingBean SpanNamer sleuthSpanNamer() { return new DefaultSpanNamer(); }
private SpanNamer spanNamer() { if (this.spanNamer == null) { try { this.spanNamer = this.beanFactory.getBean(SpanNamer.class); } catch (NoSuchBeanDefinitionException e) { log.warn( "SpanNamer bean not found - will provide a manually created instance"); return new DefaultSpanNamer(); } } return this.spanNamer; }
private SpanNamer spanNamer() { if (this.spanNamer == null) { try { this.spanNamer = this.beanFactory.getBean(SpanNamer.class); } catch (NoSuchBeanDefinitionException e) { log.warn( "SpanNamer bean not found - will provide a manually created instance"); return new DefaultSpanNamer(); } } return this.spanNamer; }