logconvert

package
v0.60.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: Apache-2.0 Imports: 6 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GCPLogEntryKeyOrder = []string{
	"insertId",
	"logName",
	"trace",
	"spanId",
	"traceSampled",
	"sourceLocation",
	"split",
	"labels",
	"operation",
	"httpRequest",
	"protoPayload",
	"jsonPayload",
	"textPayload",
	"resource",
	"receiveTimestamp",
	"timestamp",
	"severity",
}

GCPLogEntryKeyOrder defines the canonical top-level field order for GCP Cloud Logging entries when serializing to YAML.

Functions

func LogEntryToNode

func LogEntryToNode(builder *structured.LazyJSONBlockBuilder, l *loggingpb.LogEntry) (structured.Node, error)

LogEntryToNode converts a Google Cloud Logging LogEntry protobuf message into a structured.Node. It directly marshals the LogEntry into JSON bytes via protojson and appends it to the block builder.

Types

This section is empty.

Jump to

Keyboard shortcuts

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