public abstract class TracerResolver extends Object
TracerResolver API definition looks for one or more registered TracerResolver implementations
using the ServiceLoader.
If no TracerResolver implementations are found, the resolveTracer() method will fallback to
ServiceLoader lookup of the Tracer service itself.
Available TracerConverter implementations are applied to the resolved Tracer instance.
| Constructor and Description |
|---|
TracerResolver() |
| Modifier and Type | Method and Description |
|---|---|
static void |
reload()
Reloads the lazily found resolvers and the fallback resolver.
|
protected abstract io.opentracing.Tracer |
resolve()
Resolves the
Tracer implementation. |
static io.opentracing.Tracer |
resolveTracer()
Detects all
TracerResolver service implementations and attempts to resolve a Tracer. |
protected abstract io.opentracing.Tracer resolve()
Tracer implementation.null if none was resolved.public static io.opentracing.Tracer resolveTracer()
TracerResolver service implementations and attempts to resolve a Tracer.
If there are more than one resolver, the first non-null resolved tracer is returned.
null if none was resolved.public static void reload()
Copyright © 2017. All rights reserved.