Configuration options for the Google Cloud plugin.

interface GcpTelemetryConfigOptions {
    autoInstrumentation?: boolean;
    autoInstrumentationConfig?: InstrumentationConfigMap;
    credentials?: JWTInput;
    disableLoggingInputAndOutput?: boolean;
    disableMetrics?: boolean;
    disableTraces?: boolean;
    forceDevExport?: boolean;
    instrumentations?: Instrumentation<InstrumentationConfig>[];
    metricExportIntervalMillis?: number;
    metricExportTimeoutMillis?: number;
    projectId?: string;
    sampler?: Sampler;
}

Properties

autoInstrumentation?: boolean

Include OpenTelemetry autoInstrumentation. Defaults to true.

autoInstrumentationConfig?: InstrumentationConfigMap
credentials?: JWTInput

Credentials must be provided to export telemetry, if not available through the environment.

disableLoggingInputAndOutput?: boolean

When true, inputs and outputs are not logged to GCP

disableMetrics?: boolean

When true, metrics are not exported.

disableTraces?: boolean

When true, traces are not exported.

forceDevExport?: boolean

When true, telemetry data will be exported, even for local runs. Defaults to not exporting development traces.

instrumentations?: Instrumentation<InstrumentationConfig>[]
metricExportIntervalMillis?: number

Metric export intervals, minimum is 5000ms.

metricExportTimeoutMillis?: number
projectId?: string

Cloud projectId is required, either passed here, through GCLOUD_PROJECT or application default credentials.

sampler?: Sampler

Trace sampler, defaults to always on which exports all traces.