package internal

import "cloud.google.com/go/logging/internal"

Index

Constants

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

Version is the current tagged release of the library.

Variables

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

func VersionGo() string

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

Types

type ResourceAttributesGetter

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

func ResourceAttributes() ResourceAttributesGetter

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

Source Files

common.go environment.go version.go

Directories

PathSynopsis
internal/testingPackage testing provides support for testing the logging client.
Version
v1.13.0 (latest)
Published
Jan 2, 2025
Platform
linux/amd64
Imports
11 packages
Last checked
1 day ago

Tools for package owners.