Versions in this module Expand all Collapse all v0 v0.4.0 Jun 18, 2018 Changes in this version + const AgentVersion + func ContextWithSpan(parent context.Context, s *Span) context.Context + func ContextWithTransaction(parent context.Context, t *Transaction) context.Context + type BodyCapturer struct + type CaptureBodyMode int + const CaptureBodyAll + const CaptureBodyErrors + const CaptureBodyOff + const CaptureBodyTransactions + type Context struct + func (c *Context) SetCustom(key string, value interface{}) + func (c *Context) SetHTTPRequest(req *http.Request) + func (c *Context) SetHTTPRequestBody(bc *BodyCapturer) + func (c *Context) SetHTTPResponseFinished(finished bool) + func (c *Context) SetHTTPResponseHeaders(h http.Header) + func (c *Context) SetHTTPResponseHeadersSent(headersSent bool) + func (c *Context) SetHTTPStatusCode(statusCode int) + func (c *Context) SetTag(key, value string) + type DatabaseSpanContext struct + Instance string + Statement string + Type string + User string + type Error struct + Context Context + Culprit string + Handled bool + ID string + Timestamp time.Time + Transaction *Transaction + func CaptureError(ctx context.Context, err error) *Error + func (e *Error) Send() + func (e *Error) SetStacktrace(skip int) + type ErrorLogRecord struct + Level string + LoggerName string + Message string + MessageFormat string + type Logger interface + Debugf func(format string, args ...interface{}) + Errorf func(format string, args ...interface{}) + type RatioSampler struct + func NewRatioSampler(r float64, source rand.Source) *RatioSampler + func (s *RatioSampler) Sample(*Transaction) bool + type Sampler interface + Sample func(*Transaction) bool + type Span struct + Context SpanContext + Duration time.Duration + Name string + Timestamp time.Time + Type string + func SpanFromContext(ctx context.Context) *Span + func StartSpan(ctx context.Context, name, spanType string) (*Span, context.Context) + func (s *Span) Dropped() bool + func (s *Span) End() + func (s *Span) SetStacktrace(skip int) + type SpanContext struct + func (c *SpanContext) SetDatabase(db DatabaseSpanContext) + type Tracer struct + Service struct{ ... } + Transport transport.Transport + var DefaultTracer *Tracer + func NewTracer(serviceName, serviceVersion string) (*Tracer, error) + func (t *Tracer) Active() bool + func (t *Tracer) CaptureHTTPRequestBody(req *http.Request) *BodyCapturer + func (t *Tracer) Close() + func (t *Tracer) Flush(abort <-chan struct{}) + func (t *Tracer) NewError(err error) *Error + func (t *Tracer) NewErrorLog(r ErrorLogRecord) *Error + func (t *Tracer) Recover(tx *Transaction) + func (t *Tracer) Recovered(v interface{}, tx *Transaction) *Error + func (t *Tracer) SetCaptureBody(mode CaptureBodyMode) + func (t *Tracer) SetContextSetter(setter stacktrace.ContextSetter) + func (t *Tracer) SetFlushInterval(d time.Duration) + func (t *Tracer) SetLogger(logger Logger) + func (t *Tracer) SetMaxErrorQueueSize(n int) + func (t *Tracer) SetMaxSpans(n int) + func (t *Tracer) SetMaxTransactionQueueSize(n int) + func (t *Tracer) SetSampler(s Sampler) + func (t *Tracer) SetSanitizedFieldNames(patterns ...string) error + func (t *Tracer) SetSpanFramesMinDuration(d time.Duration) + func (t *Tracer) StartTransaction(name, transactionType string, opts ...TransactionOption) *Transaction + func (t *Tracer) Stats() TracerStats + type TracerStats struct + Errors TracerStatsErrors + ErrorsDropped uint64 + ErrorsSent uint64 + TransactionsDropped uint64 + TransactionsSent uint64 + type TracerStatsErrors struct + SendErrors uint64 + SendTransactions uint64 + SetContext uint64 + type Transaction struct + Context Context + Duration time.Duration + Name string + Result string + Timestamp time.Time + Type string + func TransactionFromContext(ctx context.Context) *Transaction + func (tx *Transaction) Discard() + func (tx *Transaction) End() + func (tx *Transaction) Sampled() bool + func (tx *Transaction) StartSpan(name, spanType string, parent *Span) *Span + type TransactionOption func(*transactionOptions)