Class FirestoreOpenTelemetryOptions.Builder (3.27.2)

public static class FirestoreOpenTelemetryOptions.Builder

Inheritance

java.lang.Object > FirestoreOpenTelemetryOptions.Builder

Methods

build()

public FirestoreOpenTelemetryOptions build()
Returns
Type Description
FirestoreOpenTelemetryOptions

setOpenTelemetry(OpenTelemetry openTelemetry)

public FirestoreOpenTelemetryOptions.Builder setOpenTelemetry(OpenTelemetry openTelemetry)

Sets the OpenTelemetry to use with this Firestore instance. If telemetry collection is enabled, but an OpenTelemetry is not provided, the Firestore SDK will attempt to use the GlobalOpenTelemetry.

Parameter
Name Description
openTelemetry io.opentelemetry.api.OpenTelemetry

The OpenTelemetry that should be used by this Firestore instance.

Returns
Type Description
FirestoreOpenTelemetryOptions.Builder

setTracingEnabled(boolean tracingEnabled)

public FirestoreOpenTelemetryOptions.Builder setTracingEnabled(boolean tracingEnabled)

Sets whether tracing should be enabled.

Parameter
Name Description
tracingEnabled boolean

Whether tracing should be enabled.

Returns
Type Description
FirestoreOpenTelemetryOptions.Builder