Documentation ¶
Index ¶
- Constants
- Variables
- func ClearSpanMetaContext(ctx context.Context) context.Context
- func GetAuthBaseTags(ctx context.Context) map[string]string
- func GetDbCollTagsForReq(req interface{}) map[string]string
- func GetFdbBaseTags(reqMthodName string) map[string]string
- func GetFdbErrorTags(reqMethodName string, code string) map[string]string
- func GetFdbOkTags(reqMethodName string) map[string]string
- func GetGlobalTags() map[string]string
- func GetNamespace(ctx context.Context) string
- func GetSearchTags(reqMethodName string) map[string]string
- func GetSessionTags(sessionMethodName string) map[string]string
- func InitializeMetrics() io.Closer
- func UpdateCollectionSizeMetrics(namespaceName string, dbName string, collectionName string, size int64)
- func UpdateDbSizeMetrics(namespaceName string, dbName string, size int64)
- func UpdateNameSpaceSizeMetrics(namespaceName string, size int64)
- type SpanMeta
- func (s *SpanMeta) AddTags(tags map[string]string)
- func (s *SpanMeta) CountErrorForScope(scope tally.Scope, tags map[string]string)
- func (s *SpanMeta) CountOkForScope(scope tally.Scope, tags map[string]string)
- func (s *SpanMeta) CountReceivedBytes(scope tally.Scope, tags map[string]string, size int)
- func (s *SpanMeta) CountSentBytes(scope tally.Scope, tags map[string]string, size int)
- func (s *SpanMeta) FinishTracing(ctx context.Context) context.Context
- func (s *SpanMeta) FinishWithError(ctx context.Context, source string, err error) context.Context
- func (s *SpanMeta) GetAuthErrorTags(err error) map[string]string
- func (s *SpanMeta) GetAuthOkTags() map[string]string
- func (s *SpanMeta) GetAuthTimerTags() map[string]string
- func (s *SpanMeta) GetCollectionSizeTags() map[string]string
- func (s *SpanMeta) GetDbSizeTags() map[string]string
- func (s *SpanMeta) GetFdbErrorTags(err error) map[string]string
- func (s *SpanMeta) GetFdbOkTags() map[string]string
- func (s *SpanMeta) GetFdbTimerTags() map[string]string
- func (s *SpanMeta) GetNamespaceSizeTags() map[string]string
- func (s *SpanMeta) GetNetworkTags() map[string]string
- func (s *SpanMeta) GetRequestErrorTags(err error) map[string]string
- func (s *SpanMeta) GetRequestOkTags() map[string]string
- func (s *SpanMeta) GetRequestTimerTags() map[string]string
- func (s *SpanMeta) GetResourceName() string
- func (s *SpanMeta) GetSearchErrorTags(err error) map[string]string
- func (s *SpanMeta) GetSearchOkTags() map[string]string
- func (s *SpanMeta) GetSearchTimerTags() map[string]string
- func (s *SpanMeta) GetServiceName() string
- func (s *SpanMeta) GetSessionErrorTags(err error) map[string]string
- func (s *SpanMeta) GetSessionOkTags() map[string]string
- func (s *SpanMeta) GetSessionTimerTags() map[string]string
- func (s *SpanMeta) GetSpanOptions() []tracer.StartSpanOption
- func (s *SpanMeta) GetTags() map[string]string
- func (s *SpanMeta) SaveSpanMetaToContext(ctx context.Context) (context.Context, error)
- func (s *SpanMeta) StartTracing(ctx context.Context, childOnly bool) context.Context
- type SpanMetaCtxKey
Constants ¶
View Source
const ( KvTracingServiceName string = "kv" TraceServiceName string = "tigris.grpc.server" SessionManagerServiceName string = "session" GrpcSpanType string = "grpc" FdbSpanType string = "fdb" SearchSpanType string = "search" SessionSpanType string = "session" AuthSpanType string = "auth" )
Variables ¶
View Source
var ( AuthOkRequests tally.Scope AuthErrorRequests tally.Scope AuthRespTime tally.Scope )
View Source
var ( Reporter promreporter.Reporter Requests tally.Scope FdbMetrics tally.Scope SearchMetrics tally.Scope SessionMetrics tally.Scope SizeMetrics tally.Scope NetworkMetrics tally.Scope AuthMetrics tally.Scope )
View Source
var ( BytesReceived tally.Scope BytesSent tally.Scope )
View Source
var ( SearchOkRequests tally.Scope SearchErrorRequests tally.Scope SearchRespTime tally.Scope )
Functions ¶
func GetDbCollTagsForReq ¶
func GetFdbBaseTags ¶
func GetFdbOkTags ¶
func GetGlobalTags ¶
func GetNamespace ¶
func GetSearchTags ¶
func GetSessionTags ¶
func InitializeMetrics ¶
func UpdateDbSizeMetrics ¶
Types ¶
type SpanMeta ¶
type SpanMeta struct {
// contains filtered or unexported fields
}
func NewSpanMeta ¶
func (*SpanMeta) CountErrorForScope ¶
func (*SpanMeta) CountOkForScope ¶
func (*SpanMeta) CountReceivedBytes ¶
func (*SpanMeta) CountSentBytes ¶
func (*SpanMeta) FinishTracing ¶
func (*SpanMeta) FinishWithError ¶
func (*SpanMeta) GetAuthErrorTags ¶
func (*SpanMeta) GetAuthOkTags ¶
func (*SpanMeta) GetAuthTimerTags ¶
func (*SpanMeta) GetCollectionSizeTags ¶
func (*SpanMeta) GetDbSizeTags ¶
func (*SpanMeta) GetFdbOkTags ¶
func (*SpanMeta) GetFdbTimerTags ¶
func (*SpanMeta) GetNamespaceSizeTags ¶
func (*SpanMeta) GetNetworkTags ¶
func (*SpanMeta) GetRequestErrorTags ¶
func (*SpanMeta) GetRequestOkTags ¶
func (*SpanMeta) GetRequestTimerTags ¶
func (*SpanMeta) GetResourceName ¶
func (*SpanMeta) GetSearchErrorTags ¶
func (*SpanMeta) GetSearchOkTags ¶
func (*SpanMeta) GetSearchTimerTags ¶
func (*SpanMeta) GetServiceName ¶
func (*SpanMeta) GetSessionErrorTags ¶
func (*SpanMeta) GetSessionOkTags ¶
func (*SpanMeta) GetSessionTimerTags ¶
func (*SpanMeta) GetSpanOptions ¶
func (s *SpanMeta) GetSpanOptions() []tracer.StartSpanOption
func (*SpanMeta) SaveSpanMetaToContext ¶
type SpanMetaCtxKey ¶
type SpanMetaCtxKey struct { }
Click to show internal directories.
Click to hide internal directories.