Documentation
¶
Overview ¶
The googlecloud package supports telemetry (tracing, metrics and logging) using Google Cloud services.
The googlecloud package supports telemetry (tracing, metrics and logging) using Google Cloud services.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GoogleCloud ¶ added in v0.3.0
type GoogleCloud struct { ProjectID string // ID of the Google Cloud project to use. Required. ForceExport bool // Export to Google Cloud even in the dev environment. MetricInterval time.Duration // Interval for exporting metric data. The default is 60 seconds. LogLevel slog.Leveler // Minimum level at which logs will be written. Defaults to [slog.LevelInfo]. }
GoogleCloud is a Genkit plugin for writing logs to Google Cloud.
func (*GoogleCloud) Init ¶ added in v0.3.0
Init initializes all telemetry in this package. In the dev environment, this does nothing unless [Options.ForceExport] is true.
func (*GoogleCloud) Name ¶ added in v0.3.0
func (gc *GoogleCloud) Name() string
Name returns the name of the plugin.
Click to show internal directories.
Click to hide internal directories.