Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContextWithTagCrumb ¶ added in v0.27.0
Returns a new context with given crumb appended to existing tag, if present. Otherwise, tracks the new tag in returned context. Useful for adding breadcrumbs to a Stat prior to a recording it.
func RecordStat ¶ added in v0.27.0
Append a new Stat to the RequestStats obj in provided context, if present
Types ¶
type RequestStats ¶
type RequestStats struct {
Stats []Stat
}
func GetRequestStatsFromContext ¶ added in v0.27.0
func GetRequestStatsFromContext(ctx context.Context) *RequestStats
Get RequestStats from ctx, if present
func (*RequestStats) MarshalZerologObject ¶
func (s *RequestStats) MarshalZerologObject(e *zerolog.Event)
Click to show internal directories.
Click to hide internal directories.