telemetry

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: Apache-2.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(ctx context.Context, options ...Option) (func(context.Context) error, error)

Setup configures OpenTelemetry with option exporter.

Types

type Option

type Option func(*opts)

func WithGCPLogExport

func WithGCPLogExport(enable bool) Option

WithGCPLogExport enables streaming applications logs to GCP.

func WithGCPMeterExport

func WithGCPMeterExport(enable bool) Option

func WithGCPProject

func WithGCPProject(proj string) Option

WithGCPProject sets to project for export OTEL traces and metrics as well as applications. If unset and telemetry epxort is enabled, the project is determined based the Application Default Credentials.

func WithGCPTraceExport

func WithGCPTraceExport(enable bool) Option

WithGCPTraceExport enables exporting OpenTelemetry traces and metrics to GCP.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL