trace

package
v2.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 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 Callback

type Callback trace.EventCallback

Callback provides a custom callback function which is called for each tracing event.

func (Callback) ApplyTracer

func (cb Callback) ApplyTracer(t *g.Tracer)

type Capture

type Capture struct {
	*g.Capture
}

Capture will write Tracepoints as fake packets to the capture.

Checkout the included Lua-based WireShark dissector to decode the fake tracing event packets.

Start WireShark with the following options to load the dissector:

wireshark -Xlua_script:dissector.lua

See ./dissector/dissector.lua

func ToCapture

func ToCapture(c *g.Capture) Capture

func (Capture) ApplyTracer

func (c Capture) ApplyTracer(t *g.Tracer)

type Channel

type Channel chan trace.Event

Channel sends tracing events to the provided channel.

func ToChannel

func ToChannel(ch chan trace.Event) Channel

func (Channel) ApplyTracer

func (d Channel) ApplyTracer(t *g.Tracer)

type File

type File struct {
	*os.File
}

File writes tracing events in JSON format to the provided file handle. Each event is written to a new line.

func ToFile

func ToFile(f *os.File) File

func (File) ApplyTracer

func (f File) ApplyTracer(t *g.Tracer)

type Filename

type Filename string

Filename appends tracing events to a new or existing file with the provided filename.

func ToFilename

func ToFilename(fn string) Filename

func (Filename) ApplyTracer

func (fn Filename) ApplyTracer(c *g.Tracer)

Jump to

Keyboard shortcuts

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