Documentation ¶
Index ¶
- func GetCallText(ctx context.Context) string
- func GetClientName(ctx context.Context) string
- func GetComposedAt(ctx context.Context) time.Time
- func GetHandledAt(ctx context.Context) time.Time
- func GetParsedAt(ctx context.Context) time.Time
- func GetReceivedAt(ctx context.Context) time.Time
- func GetRecognizedAt(ctx context.Context) time.Time
- func GetRequest(ctx context.Context) any
- func GetRequestError(ctx context.Context) error
- func GetRequestText(ctx context.Context) string
- func GetSubmittedAt(ctx context.Context) time.Time
- func GetSynthesizedAt(ctx context.Context) time.Time
- func GetTraceID(ctx context.Context) string
- func NewRequestContext() context.Context
- func WithCallText(ctx context.Context, text string) context.Context
- func WithClientName(ctx context.Context, name string) context.Context
- func WithComposedAt(ctx context.Context, composedAt time.Time) context.Context
- func WithHandledAt(ctx context.Context, handledAt time.Time) context.Context
- func WithParsedAt(ctx context.Context, parsedAt time.Time) context.Context
- func WithReceivedAt(ctx context.Context, receivedAt time.Time) context.Context
- func WithRecognizedAt(ctx context.Context, recognizedAt time.Time) context.Context
- func WithRequest(ctx context.Context, request any) context.Context
- func WithRequestError(ctx context.Context, err error) context.Context
- func WithRequestText(ctx context.Context, text string) context.Context
- func WithSubmittedAt(ctx context.Context, submittedAt time.Time) context.Context
- func WithSynthesizedAt(ctx context.Context, synthesizedAt time.Time) context.Context
- func WithTraceID(ctx context.Context, traceID string) context.Context
- func WithoutRequestText(ctx context.Context) context.Context
- type DiscordWebhook
- type LogTracer
- type Tracer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCallText ¶
func GetClientName ¶
func GetRequest ¶
func GetRequestError ¶
func GetRequestText ¶
func GetTraceID ¶
func NewRequestContext ¶
func WithComposedAt ¶
func WithReceivedAt ¶
func WithRecognizedAt ¶
func WithSubmittedAt ¶
func WithSynthesizedAt ¶
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 ¶
func NewLogTracer ¶
func NewLogTracer() *LogTracer
Click to show internal directories.
Click to hide internal directories.