public class SenderResolver
extends java.lang.Object
Sender
Constructor and Description |
---|
SenderResolver() |
Modifier and Type | Method and Description |
---|---|
static Sender |
resolve()
|
static Sender |
resolve(Configuration.SenderConfiguration senderConfiguration)
Resolves a sender by passing the given
Configuration.SenderConfiguration down to the
SenderFactory . |
public static Sender resolve()
resolve(Configuration.SenderConfiguration)
public static Sender resolve(Configuration.SenderConfiguration senderConfiguration)
Configuration.SenderConfiguration
down to the
SenderFactory
. The factory is loaded either based on the value from the environment variable
Configuration.JAEGER_SENDER_FACTORY
or, in its absence or failure to deliver a Sender
,
via the ServiceLoader
. If no factories are found, a NoopSender
is returned. If multiple factories
are available, the factory whose SenderFactory.getType()
matches the JAEGER_SENDER_FACTORY env var is
selected. If none matches, NoopSender
is returned.senderConfiguration
- the configuration to pass down to the factory