Documentation ¶
Index ¶
Constants ¶
View Source
const (
// ProdAddr is the production address.
ProdAddr = "logging.googleapis.com:443"
)
View Source
const Version = "1.13.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 ¶
LogIDFromPath parses and returns the ID from a log path.
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.
Click to show internal directories.
Click to hide internal directories.