internal

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProdAddr is the production address.
	ProdAddr = "logging.googleapis.com:443"
)
View Source
const Version = "1.9.0"

Version is the current tagged release of the library.

Variables

View Source
var InstrumentOnce = new(sync.Once)

InstrumentOnce guards instrumenting logs one time

Functions

func LogIDFromPath

func LogIDFromPath(parent, path string) string

LogIDFromPath parses and returns the ID from a log path.

func LogPath

func LogPath(parent, logID string) string

LogPath creates a formatted path from a parent and a logID.

func VersionGo added in v1.5.0

func VersionGo() string

VersionGo returns the Go runtime version. The returned string has no whitespace, suitable for reporting in header.

Types

type ResourceAttributesGetter added in v1.5.0

type ResourceAttributesGetter interface {
	EnvVar(name string) string
	Metadata(path string) string
	ReadAll(path string) string
}

ResourceAttributesGetter abstracts environment lookup methods to query for environment variables, metadata attributes and file content.

func ResourceAttributes added in v1.5.0

func ResourceAttributes() ResourceAttributesGetter

ResourceAttributes provides read-only access to the ResourceAtttributesGetter interface implementation.

Directories

Path Synopsis
Package testing provides support for testing the logging client.
Package testing provides support for testing the logging client.

Jump to

Keyboard shortcuts

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