const ( // ProdAddr is the production address. ProdAddr = "logging.googleapis.com:443" )
Version is the current tagged release of the library.
const Version = "1.10.0"
InstrumentOnce guards instrumenting logs one time
var InstrumentOnce = new(sync.Once)
func LogIDFromPath(parent, path string) string
LogIDFromPath parses and returns the ID from a log path.
func LogPath(parent, logID string) string
LogPath creates a formatted path from a parent and a logID.
func VersionGo() string
VersionGo returns the Go runtime version. The returned string has no whitespace, suitable for reporting in header.
ResourceAttributesGetter abstracts environment lookup methods to query for environment variables, metadata attributes and file content.
type ResourceAttributesGetter interface { EnvVar(name string) string Metadata(path string) string ReadAll(path string) string }
func ResourceAttributes() ResourceAttributesGetter
ResourceAttributes provides read-only access to the ResourceAtttributesGetter interface implementation.
Name | Synopsis |
---|---|
.. |