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.
Click to show internal directories.
Click to hide internal directories.