Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorReporter ¶ added in v0.3.0
type ErrorReporter interface { FlushErrorReporting() CaptureError(err error, options ErrorReporterOptions) bool }
type ErrorReporterOptions ¶ added in v0.3.1
type ErrorReporterOptions struct {
ErrorDiagnosticPath string
}
type Instrumentor ¶
type Instrumentor interface { StartSpan(ctx context.Context, operation string) Span NewTransaction( ctx context.Context, txName string, operation string, ) Span Finish(span Span) }
Instrumentor exposes functions used for adding instrumentation context to functions.
type Span ¶
type Span interface { SetTransactionName(name string) StartSpan(ctx context.Context) Finish() GetOperation() string GetTxName() string // GetTraceId Returns UUID of the trace GetTraceId() string Context() context.Context GetDurationMs() int64 }
Span exposes functions that have context about functions.
Click to show internal directories.
Click to hide internal directories.