stack

package module
v0.0.0-...-fb32a43 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: MIT Imports: 8 Imported by: 0

README

Stack

TODO
  • Improve decomposition
  • Errors design
  • stacktraces
  • file/line
  • Readme
  • Demo/boilerplate
  • Compose
  • Delivery
  • StdLog impl

logging tracing metrics profiling telemetry

  • Reduce boilerplate
  • Lower the entry threshold
  • Instantly find out any error origin
  • Simplify and unify tracing and logging patterns
  • Automatically attach context fields to spans
  • Support pluggable tracing backends
  • TODO: metrics
  • TODO: in-benchmark profiling (samples collection)
  • TODO: runtime profiling
  • Internal error types works well with "errors" package

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(ctx context.Context, name string, attrs ...A)

func Error

func Error(ctx context.Context, name string, err error, attrs ...A) error

func Info

func Info(ctx context.Context, name string, attrs ...A)

func Log

func Log(ctx context.Context, level, name string, attrs ...A)

func Name

func Name(name string) stack_backend.Option

func Op

func Op() op

func Panic

func Panic(p any) error

func Recover

func Recover(ctx context.Context, rFn func(rec any))

TODO

func Span

func Span(ctx context.Context, opts ...stack_backend.Option) (context.Context, endFunc)

func TLog

func TLog(ctx context.Context, typed any)

func Warn

func Warn(ctx context.Context, name string, attrs ...A)

func With

func With() stack_backend.Options

func WithVCSFields

func WithVCSFields() stack_backend.Option

Types

type A

type A = stack_backend.Attr

func Attr

func Attr(name string, value any) A

func F

func F(name string, value any) A

Jump to

Keyboard shortcuts

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