Documentation ¶
Index ¶
- type Trace
- func (t *Trace) AddEvent(event string, attributes map[string]string)
- func (t *Trace) Close()
- func (t *Trace) FailIf(err error) error
- func (t *Trace) Failedf(format string, args ...any)
- func (t *Trace) GetTraceID() string
- func (t *Trace) RecordError(err error, attributes map[string]string)
- func (t *Trace) SetHTTPHeaders(request *http.Request)
- func (t *Trace) SetTag(key, value string)
- func (t *Trace) StartNewSpan() *Trace
- func (t *Trace) StartNewSpanWithName(spanName string) *Trace
- func (t *Trace) StartNewSpanf(format string, args ...any) *Trace
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Trace ¶
func NewTraceWithContext ¶
NewTraceWithContext returns a new instance of a Trace object to be used for tracing.
func (*Trace) GetTraceID ¶
GetTraceID returns the trace ID of the trace.
func (*Trace) RecordError ¶
RecordError records an error to the trace.
func (*Trace) SetHTTPHeaders ¶
SetHTTPHeaders sets the HTTP headers for the trace.
func (*Trace) StartNewSpan ¶
StartNewSpan starts a new span with the given span name.
func (*Trace) StartNewSpanWithName ¶
Click to show internal directories.
Click to hide internal directories.