public class LazySleuthSpanContextSupplier extends Object implements io.prometheus.client.exemplars.tracer.common.SpanContextSupplier, org.springframework.beans.factory.SmartInitializingSingleton
SpanContextSupplier that fetches the Tracer lazily after singletons
are instantiated and uses it onwards.| Constructor and Description |
|---|
LazySleuthSpanContextSupplier(org.springframework.beans.factory.ObjectProvider<Tracer> tracerProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterSingletonsInstantiated() |
String |
getSpanId() |
String |
getTraceId() |
public LazySleuthSpanContextSupplier(org.springframework.beans.factory.ObjectProvider<Tracer> tracerProvider)
public String getTraceId()
getTraceId in interface io.prometheus.client.exemplars.tracer.common.SpanContextSupplierpublic String getSpanId()
getSpanId in interface io.prometheus.client.exemplars.tracer.common.SpanContextSupplierpublic void afterSingletonsInstantiated()
afterSingletonsInstantiated in interface org.springframework.beans.factory.SmartInitializingSingletonCopyright © 2022 Pivotal Software, Inc.. All rights reserved.