Documentation ¶
Index ¶
- func LogBackend(span opentracing.Span, r *bfe_basic.Request)
- func LogEventf(span opentracing.Span, format string, args ...interface{})
- func LogRequest(span opentracing.Span, r *bfe_http.Request)
- func LogResponseCode(span opentracing.Span, code int)
- func SetError(span opentracing.Span)
- func SetErrorWithEvent(span opentracing.Span, format string, args ...interface{})
- type Trace
- func (t *Trace) Close()
- func (t *Trace) Extract(format interface{}, carrier interface{}) (opentracing.SpanContext, error)
- func (t *Trace) Inject(sm opentracing.SpanContext, format interface{}, carrier interface{}) error
- func (t *Trace) IsEnabled() bool
- func (t *Trace) StartSpan(operationName string, opts ...opentracing.StartSpanOption) opentracing.Span
- type TraceAgent
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LogBackend ¶
LogBackend used to log backend info
func LogEventf ¶
func LogEventf(span opentracing.Span, format string, args ...interface{})
LogEventf logs an event to the span in the request context.
func LogRequest ¶
LogRequest used to create span tags from the request.
func LogResponseCode ¶
func LogResponseCode(span opentracing.Span, code int)
LogResponseCode used to log response code in span.
func SetError ¶
func SetError(span opentracing.Span)
SetError flags the span associated with this request as in error.
func SetErrorWithEvent ¶
func SetErrorWithEvent(span opentracing.Span, format string, args ...interface{})
SetErrorWithEvent flags the span associated with this request as in error and log an event.
Types ¶
type Trace ¶
type Trace struct { ServiceName string // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.