logconvert

package
v0.58.4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

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