tracelog

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: MIT Imports: 8 Imported by: ? modules, 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

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