tracelog

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Deprecated: use cloudtrace.Operation instead.
	Operation = "logging.googleapis.com/operation"
	// Deprecated: use cloudtrace.SpanId instead.
	SpanId = "logging.googleapis.com/spanId"
	// Deprecated: use cloudtrace.Id instead
	Id = "logging.googleapis.com/trace"
	// Deprecated: use cloudtrace.Sampled instead.
	Sampled = "logging.googleapis.com/trace_sampled"
)

Variables

This section is empty.

Functions

func Setup

func Setup(opt ...tracelog.Option)

Types

type LogEntryOperation

type LogEntryOperation struct {
	Id       string `json:"id"`
	Producer string `json:"producer,omitempty"`
	First    *bool  `json:"first,omitempty"`
	Last     *bool  `json:"last,omitempty"`
}

LogEntryOperation represents the operation field in a log entry. Deprecated: Use cloudtrace.LogEntryOperation instead.

func (LogEntryOperation) MarshalZerologObject

func (o LogEntryOperation) MarshalZerologObject(e *zerolog.Event)

MarshalZerologObject implements the zerolog.LogObjectMarshaler interface. Deprecated: Use cloudtrace.LogEntryOperation.MarshalZerologObject instead.

type TracingContext

type TracingContext struct {
	Path      string
	ClientIP  string
	RequestID string
	Service   string
	Producer  string
}

TracingContext holds tracing information for logging. Deprecated: Use cloudtrace.TracingContext instead.

func (*TracingContext) Dump

func (tc *TracingContext) Dump(ctx context.Context, log *zerolog.Event) *zerolog.Event

Dump adds tracing information to the log event. Deprecated: Use cloudtrace.TracingContext.Dump instead.

func (*TracingContext) WithTrace

func (tc *TracingContext) WithTrace(ctx context.Context, event *zerolog.Event) *zerolog.Event

WithTrace adds tracing information to the log event. Deprecated: Use cloudtrace.TracingContext.WithTrace instead.

Jump to

Keyboard shortcuts

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