TraceConfiguration.Builder - DataDog/dd-sdk-android GitHub Wiki

class Builder

A Builder class for a TraceConfiguration.

Constructors

Builder

constructor()

Functions

build

fun build(): TraceConfiguration

Builds a TraceConfiguration based on the current state of this Builder.

setEventMapper

fun setEventMapper(eventMapper: SpanEventMapper): TraceConfiguration.Builder

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

fun setNetworkInfoEnabled(enabled: Boolean): TraceConfiguration.Builder

Enables network information to be automatically added in your logs.

Parameters
enabled true by default

useCustomEndpoint

fun useCustomEndpoint(endpoint: String): TraceConfiguration.Builder

Let the Tracing feature target a custom server.