googlecloud

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: May 13, 2025 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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