Documentation ¶
Overview ¶
Package logging helps with Logging
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { MicroserviceName string `json:"microservice_name"` InstanceName string `json:"instance_name"` Environment string `json:"environment"` Severity string `json:"severity,omitempty"` Message string `json:"message"` Description string `json:"description"` Now time.Time `json:"now,omitempty"` Trace string `json:"logging.googleapis.com/trace,omitempty"` Component string `json:"component,omitempty"` TriggeringPubsubID string `json:"triggering_pubsub_id,omitempty"` TriggeringPubsubTimestamp time.Time `json:"triggering_pubsub_timestamp,omitempty"` TriggeringPubsubAgeSeconds float64 `json:"triggering_pubsub_age_seconds,omitempty"` OriginEventID string `json:"origin_event_id,omitempty"` OriginEventTimestamp time.Time `json:"origin_event_timestamp,omitempty"` LatencySeconds float64 `json:"latency_seconds,omitempty"` LatencyE2ESeconds float64 `json:"latency_e2e_seconds,omitempty"` }
Entry defines a Google Cloud logging structured entry https://cloud.google.com/logging/docs/agent/configuration#special-fields
Click to show internal directories.
Click to hide internal directories.