googlecloud

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 18, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

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

func (gc *GoogleCloud) Init(ctx context.Context, g *genkit.Genkit) (err error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳