traces

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2024 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCallText

func GetCallText(ctx context.Context) string

func GetClientName

func GetClientName(ctx context.Context) string

func GetComposedAt

func GetComposedAt(ctx context.Context) time.Time

func GetHandledAt

func GetHandledAt(ctx context.Context) time.Time

func GetParsedAt

func GetParsedAt(ctx context.Context) time.Time

func GetReceivedAt

func GetReceivedAt(ctx context.Context) time.Time

func GetRecognizedAt

func GetRecognizedAt(ctx context.Context) time.Time

func GetRequest

func GetRequest(ctx context.Context) any

func GetRequestError

func GetRequestError(ctx context.Context) error

func GetRequestText

func GetRequestText(ctx context.Context) string

func GetSubmittedAt

func GetSubmittedAt(ctx context.Context) time.Time

func GetSynthesizedAt

func GetSynthesizedAt(ctx context.Context) time.Time

func GetTraceID

func GetTraceID(ctx context.Context) string

func NewRequestContext

func NewRequestContext() context.Context

func WithCallText

func WithCallText(ctx context.Context, text string) context.Context

func WithClientName

func WithClientName(ctx context.Context, name string) context.Context

func WithComposedAt

func WithComposedAt(ctx context.Context, composedAt time.Time) context.Context

func WithHandledAt

func WithHandledAt(ctx context.Context, handledAt time.Time) context.Context

func WithParsedAt

func WithParsedAt(ctx context.Context, parsedAt time.Time) context.Context

func WithReceivedAt

func WithReceivedAt(ctx context.Context, receivedAt time.Time) context.Context

func WithRecognizedAt

func WithRecognizedAt(ctx context.Context, recognizedAt time.Time) context.Context

func WithRequest

func WithRequest(ctx context.Context, request any) context.Context

func WithRequestError

func WithRequestError(ctx context.Context, err error) context.Context

func WithRequestText

func WithRequestText(ctx context.Context, text string) context.Context

func WithSubmittedAt

func WithSubmittedAt(ctx context.Context, submittedAt time.Time) context.Context

func WithSynthesizedAt

func WithSynthesizedAt(ctx context.Context, synthesizedAt time.Time) context.Context

func WithTraceID

func WithTraceID(ctx context.Context, traceID string) context.Context

func WithoutRequestText

func WithoutRequestText(ctx context.Context) context.Context

Types

type DiscordWebhook

type DiscordWebhook struct {
	// contains filtered or unexported fields
}

func NewDiscordWebhook

func NewDiscordWebhook(webhookID, token string) (*DiscordWebhook, error)

func (*DiscordWebhook) Trace

func (w *DiscordWebhook) Trace(ctx context.Context)

type LogTracer

type LogTracer struct {
	Level zerolog.Level
}

func NewLogTracer

func NewLogTracer() *LogTracer

func (*LogTracer) Trace

func (t *LogTracer) Trace(ctx context.Context)

type Tracer

type Tracer interface {
	Trace(context.Context)
}

Jump to

Keyboard shortcuts

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