aggregatorevent

package
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Title       string
	Time        time.Time
	EndTime     *time.Time
	TraceSource string
	Tags        map[string]any
	Logs        []tracer.Log
}

func NewEvent

func NewEvent(title string, when time.Time, traceSource string) *Event

func (*Event) GetEndTime

func (event *Event) GetEndTime() time.Time

func (*Event) Log

func (event *Event) Log(ty zconstants.LogType, value string, attrs ...string) *Event

func (*Event) SetDuration

func (event *Event) SetDuration(duration time.Duration) *Event

func (*Event) SetEndTime

func (event *Event) SetEndTime(when time.Time) *Event

func (*Event) SetTag

func (event *Event) SetTag(key string, value any) *Event

Jump to

Keyboard shortcuts

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