Documentation ¶
Index ¶
- func AddGormCallbacks(db *gorm.DB, dbTracer *tracing.JaegerTracer)
- func GetChildSpanFromContext(ctx context.Context, operation string, tags map[string]interface{}) (opentracing.Span, context.Context)
- func GetChildSpanFromGinContext(c *gin.Context, operation string, tags map[string]interface{}) (opentracing.Span, context.Context)
- func SetSpanToGorm(ctx context.Context, db *gorm.DB) *gorm.DB
- func StartRedisSpanFromContext(ctx context.Context, operation string, tags map[string]interface{}) (opentracing.Span, context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddGormCallbacks ¶
func AddGormCallbacks(db *gorm.DB, dbTracer *tracing.JaegerTracer)
AddGormCallbacks adds callbacks for tracing, you should call SetSpanToGorm to make them work
func GetChildSpanFromContext ¶
func GetChildSpanFromContext(ctx context.Context, operation string, tags map[string]interface{}) (opentracing.Span, context.Context)
Creates a new operational child span from the golang context with attributes/tagging. Use this to create spans from existing go context object
func GetChildSpanFromGinContext ¶
func GetChildSpanFromGinContext(c *gin.Context, operation string, tags map[string]interface{}) (opentracing.Span, context.Context)
Creates a new operational child span from the gin context with attributes/tagging. Use this to create spans from gin controllers
func SetSpanToGorm ¶
SetSpanToGorm sets span to gorm settings, returns cloned DB
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.