Package com.newrelic.telemetry.spans
Class SpanBatchSenderBuilder
- java.lang.Object
-
- com.newrelic.telemetry.spans.SpanBatchSenderBuilder
-
@Deprecated public class SpanBatchSenderBuilder extends java.lang.Object
Deprecated.Note: This class is deprecated and will be removed in the next major version - you should move to the factories in telemetry-core
-
-
Constructor Summary
Constructors Constructor Description SpanBatchSenderBuilder(SenderConfiguration.SenderConfigurationBuilder configurationBuilder)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SpanBatchSenderBuilder
apiKey(java.lang.String apiKey)
Deprecated.Provide your New Relic Insights Insert API keySpanBatchSender
build()
Deprecated.Build the finalSpanBatchSender
.SpanBatchSenderBuilder
enableAuditLogging()
Deprecated.Turns on audit logging.SpanBatchSenderBuilder
httpPoster(HttpPoster httpPoster)
Deprecated.Provide an implementation for HTTP POST.SpanBatchSenderBuilder
secondaryUserAgent(java.lang.String product, java.lang.String version)
Deprecated.Provide additional user agent information.SpanBatchSenderBuilder
uriOverride(java.net.URI uriOverride)
Deprecated.Set a URI to override the default ingest endpoint.
-
-
-
Constructor Detail
-
SpanBatchSenderBuilder
public SpanBatchSenderBuilder(SenderConfiguration.SenderConfigurationBuilder configurationBuilder)
Deprecated.
-
-
Method Detail
-
build
public SpanBatchSender build()
Deprecated.Build the finalSpanBatchSender
.- Returns:
- the fully configured SpanBatchSender object
-
uriOverride
public SpanBatchSenderBuilder uriOverride(java.net.URI uriOverride) throws java.net.MalformedURLException
Deprecated.Set a URI to override the default ingest endpoint.- Parameters:
uriOverride
- The scheme, host, and port that should be used for the Spans API endpoint. The path component of this parameter is unused.- Returns:
- the Builder
- Throws:
java.net.MalformedURLException
- This is thrown when the provided URI is malformed.
-
enableAuditLogging
public SpanBatchSenderBuilder enableAuditLogging()
Deprecated.Turns on audit logging. Payloads sent will be logged at the DEBUG level. Please note that if your payloads contain sensitive information, that information will be logged wherever your logs are configured.
-
apiKey
public SpanBatchSenderBuilder apiKey(java.lang.String apiKey)
Deprecated.Provide your New Relic Insights Insert API key- See Also:
- New Relic API Keys
-
httpPoster
public SpanBatchSenderBuilder httpPoster(HttpPoster httpPoster)
Deprecated.Provide an implementation for HTTP POST.build()
will throw if an implementation is not provided or this method is not called.
-
secondaryUserAgent
public SpanBatchSenderBuilder secondaryUserAgent(java.lang.String product, java.lang.String version)
Deprecated.Provide additional user agent information. The product is required to be non-null and non-empty. The version is optional, although highly recommended.
-
-