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.
Index ¶
- func Close() error
- func Initialize(version string, logger *zap.SugaredLogger)
- func InitializeIfNeeded(enabled bool, version string, logger *zap.SugaredLogger) bool
- func LoggerFor(logger *zap.SugaredLogger, span *Span) *zap.SugaredLogger
- 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 Initialize(version string, logger *zap.SugaredLogger)
func InitializeIfNeeded ¶
func InitializeIfNeeded(enabled bool, version string, logger *zap.SugaredLogger) bool
func LoggerFor ¶
func LoggerFor(logger *zap.SugaredLogger, span *Span) *zap.SugaredLogger
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. |
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.