OptionalautoEnabled by default, OpenTelemetry will automatically collect telemetry for popular libraries via auto instrumentations without any additional code or configuration. All available instrumentations will be collected, unless otherwise specified via autoInstrumentationConfig.
OptionalautoMap of auto instrumentations and their configuration options. Available options will vary by instrumentation.
OptionalcredentialsCredentials for authenticating with Google Cloud. Primarily intended for use in environments outside of GCP. On GCP credentials will typically be inferred from the environment via Application Default Credentials (ADC).
OptionaldisableIf set to true, input and output logs will not be collected.
OptionaldisableIf set to true, metrics will not be exported to Google Cloud. Traces and logs may still be exported.
OptionaldisableIf set to true, traces will not be exported to Google Cloud. Metrics and logs may still be exported.
OptionalforceIf set to true, telemetry data will be exported in the Genkit dev
environment. Useful for local testing and troubleshooting; default is
false.
OptionalinstrumentationsAdditional OpenTelemetry instrumentations to include, beyond those provided by auto instrumentations.
OptionalmetricMetrics export interval in milliseconds; Google Cloud requires a minimum value of 5000ms.
OptionalmetricTimeout for the metrics export in milliseconds.
OptionalprojectGoogle Cloud Project ID. If provided, will take precedence over the projectId inferred from the application credential and/or environment. Required when providing an external credential (e.g. Workload Identity Federation.)
OptionalsamplerOpenTelemetry sampler; controls the number of traces collected and exported to Google Cloud. Defaults to AlwaysOnSampler, which will collect and export all traces.
There are four built-in samplers to choose from:
Configuration options for the Google Cloud plugin.