Documentation ¶
Index ¶
- func New(opts ...applyOption) gorm.Plugin
- func WithLogResult(logResult bool) applyOption
- func WithOpNameKey(opNameKey string) applyOption
- func WithSpanCtxKey(spanCtxKey string) applyOption
- func WithSqlParameters(logSqlParameters bool) applyOption
- func WithTracer(tracer opentracing.Tracer) applyOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New constructs a new plugin based opentracing. It supports to trace all operations in gorm, so if you have already traced your servers, now this plugin will perfect your tracing job.
func WithLogResult ¶
func WithLogResult(logResult bool) applyOption
WithLogResult enable opentracingPlugin to log the result of each executed sql.
func WithOpNameKey ¶
func WithOpNameKey(opNameKey string) applyOption
func WithSpanCtxKey ¶
func WithSpanCtxKey(spanCtxKey string) applyOption
func WithSqlParameters ¶
func WithSqlParameters(logSqlParameters bool) applyOption
func WithTracer ¶
func WithTracer(tracer opentracing.Tracer) applyOption
WithTracer allows to use customized tracer rather than the global one only.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.