-
public final class TraceConfiguration.BuilderA Builder class for a TraceConfiguration.
-
-
Constructor Summary
Constructors Constructor Description TraceConfiguration.Builder()
-
Method Summary
Modifier and Type Method Description final TraceConfiguration.BuilderuseCustomEndpoint(String endpoint)Let the Tracing feature target a custom server. final TraceConfiguration.BuildersetEventMapper(SpanEventMapper eventMapper)Sets the SpanEventMapper for the Trace com.datadog.android.trace.model.SpanEvent. final TraceConfiguration.BuildersetNetworkInfoEnabled(Boolean enabled)Enables network information to be automatically added in your logs. final TraceConfigurationbuild()Builds a TraceConfiguration based on the current state of this Builder. -
-
Method Detail
-
useCustomEndpoint
final TraceConfiguration.Builder useCustomEndpoint(String endpoint)
Let the Tracing feature target a custom server.
-
setEventMapper
final TraceConfiguration.Builder setEventMapper(SpanEventMapper eventMapper)
Sets the SpanEventMapper for the Trace com.datadog.android.trace.model.SpanEvent. You can use this interface implementation to modify the com.datadog.android.trace.model.SpanEvent attributes before serialisation.
- Parameters:
eventMapper- the SpanEventMapper implementation.
-
setNetworkInfoEnabled
final TraceConfiguration.Builder setNetworkInfoEnabled(Boolean enabled)
Enables network information to be automatically added in your logs.
- Parameters:
enabled- true by default
-
build
final TraceConfiguration build()
Builds a TraceConfiguration based on the current state of this Builder.
-
-
-
-