public static class Options.OptionsBuilder
extends java.lang.Object
| Constructor | Description |
|---|---|
OptionsBuilder() |
|
OptionsBuilder(Options options) |
| Modifier and Type | Method | Description |
|---|---|---|
Options |
build() |
Sets the defaults for values not provided and constructs a new Options object.
|
Options.OptionsBuilder |
withAccessToken(java.lang.String accessToken) |
Sets the unique identifier for this application.
|
Options.OptionsBuilder |
withClockSkewCorrection(boolean clockCorrection) |
|
Options.OptionsBuilder |
withCollectorHost(java.lang.String collectorHost) |
Sets the host to which the tracer will send data.
|
Options.OptionsBuilder |
withCollectorPort(int collectorPort) |
Sets the port to which the tracer will send data.
|
Options.OptionsBuilder |
withCollectorProtocol(java.lang.String protocol) |
Sets the protocol which will be used when sending data to the tracer.
|
Options.OptionsBuilder |
withComponentName(java.lang.String name) |
Sets the component name attribute.
|
Options.OptionsBuilder |
withDisableReportingLoop(boolean disable) |
If true, the background reporting loop will be disabled.
|
Options.OptionsBuilder |
withMaxBufferedSpans(int maxBufferedSpans) |
Sets the maximum number of finished Spans buffered locally before flushing.
|
Options.OptionsBuilder |
withMaxReportingIntervalMillis(int maxReportingIntervalMillis) |
Sets the maximum interval between reports.
|
Options.OptionsBuilder |
withResetClient(boolean reset) |
If true, the GRPC client connection will be reset at regular intevals
Used to load balance on server side
|
Options.OptionsBuilder |
withTag(java.lang.String key,
java.lang.Object value) |
Sets a user-defined key-value pair that should be associated with all of the
data produced by this tracer.
|
Options.OptionsBuilder |
withVerbosity(int verbosity) |
Controls the amount of local output produced by the tracer.
|
public OptionsBuilder()
public OptionsBuilder(Options options)
public Options.OptionsBuilder withAccessToken(java.lang.String accessToken)
accessToken - Your specific token for LightStep access.public Options.OptionsBuilder withCollectorProtocol(java.lang.String protocol)
protocol - Either 'http' or 'https'java.lang.IllegalArgumentException - If the protocol argument is invalid.public Options.OptionsBuilder withCollectorHost(java.lang.String collectorHost)
collectorHost - The hostname for the LightStep collector.java.lang.IllegalArgumentException - If the collectorHost argument is invalid.public Options.OptionsBuilder withCollectorPort(int collectorPort)
DEFAULT_SECURE_PORT when the protocol is https and DEFAULT_PLAINTEXT_PORT
when the protocol is http.collectorPort - The port for the LightStep collector.java.lang.IllegalArgumentException - If the collectorPort is invalid.public Options.OptionsBuilder withComponentName(java.lang.String name)
name - The name of the component being traced.public Options.OptionsBuilder withTag(java.lang.String key, java.lang.Object value)
public Options.OptionsBuilder withMaxReportingIntervalMillis(int maxReportingIntervalMillis)
maxReportingIntervalMillis - The maximum interval of time that will pass between
reports.public Options.OptionsBuilder withMaxBufferedSpans(int maxBufferedSpans)
maxBufferedSpans - The maximum number of Spans buffered locally.public Options.OptionsBuilder withVerbosity(int verbosity)
public Options.OptionsBuilder withDisableReportingLoop(boolean disable)
DEFAULT_REPORTING_INTERVAL_MILLIS.public Options.OptionsBuilder withResetClient(boolean reset)
public Options.OptionsBuilder withClockSkewCorrection(boolean clockCorrection)
public Options build() throws java.net.MalformedURLException
java.net.MalformedURLException - If the combination of collector protocol, host, and port
are not validCopyright © 2018 LightStep. All rights reserved.