Documentation ¶
Overview ¶
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Index ¶
- func Close() error
- func Initialize(version string, logger util.Logger)
- func InitializeIfNeeded(enabled bool, version string, logger util.Logger) bool
- func LoggerFor(logger util.Logger, span *Span) util.Logger
- func RunProcess(ctx context.Context, cmd string, path string, in io.Reader, out io.Writer, ...) (int, error)
- func RunProcessSimple(ctx context.Context, cmd string, path string, logger util.Logger) (int, string, error)
- func WrapHTTPClient(cl *http.Client) *http.Client
- type Attribute
- type ErrHandler
- type Span
- func (s *Span) Attribute(k string, v any)
- func (s *Span) Attributes(attrs ...*Attribute)
- func (s *Span) Complete()
- func (s *Span) Event(name string, attrs ...*Attribute)
- func (s *Span) OnError(err error)
- func (s *Span) SetHTTPStatus(code int)
- func (s *Span) SetName(name string)
- func (s *Span) SetStatus(status string, description string)
- func (s *Span) SpanID() string
- func (s *Span) String() string
- func (s *Span) TraceID() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func InitializeIfNeeded ¶
func RunProcess ¶ added in v0.2.30
func RunProcessSimple ¶ added in v0.2.30
Types ¶
type ErrHandler ¶
type ErrHandler struct {
// contains filtered or unexported fields
}
func (*ErrHandler) Handle ¶
func (e *ErrHandler) Handle(err error)
type Span ¶
func StartAsyncSpan ¶
func (*Span) Attributes ¶
func (*Span) Complete ¶
func (s *Span) Complete()
Complete must be called, usually through a `defer` block.
func (*Span) SetHTTPStatus ¶
Directories ¶
Path | Synopsis |
---|---|
Content managed by Project Forge, see [projectforge.md] for details.
|
Content managed by Project Forge, see [projectforge.md] for details. |
Click to show internal directories.
Click to hide internal directories.