Documentation ¶
Index ¶
- Constants
- Variables
- func ClearSpanMetaContext(ctx context.Context) context.Context
- func GetDbCollTagsForReq(req interface{}) map[string]string
- func GetFdbErrorTags(ctx context.Context, reqMethodName string, code string) map[string]string
- func GetFdbOkTags(ctx context.Context, reqMethodName string) map[string]string
- func GetGlobalTags() map[string]string
- func GetNamespace(ctx context.Context) string
- func GetSearchTags(ctx context.Context, reqMethodName string) map[string]string
- func GetSessionTags(ctx context.Context, 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 RequestEndpointMetadata
- type SpanMeta
- func (s *SpanMeta) AddTags(tags map[string]string)
- func (s *SpanMeta) CountErrorForScope(scope tally.Scope, err error)
- func (s *SpanMeta) CountOkForScope(scope tally.Scope)
- func (s *SpanMeta) CountReceivedBytes(scope tally.Scope, size int)
- func (s *SpanMeta) CountSentBytes(scope tally.Scope, size int)
- func (s *SpanMeta) FinishTracing(ctx context.Context) context.Context
- func (s *SpanMeta) FinishWithError(ctx context.Context, err error)
- 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 ( SystemTigrisTenantName = "system" UnknownValue = "unknown" )
View Source
const ( KvTracingServiceName string = "kv" TraceServiceName string = "tigris.grpc.server" SessionManagerServiceName string = "session" )
Variables ¶
View Source
var ( Reporter promreporter.Reporter Requests tally.Scope FdbMetrics tally.Scope SearchMetrics tally.Scope SessionMetrics tally.Scope SizeMetrics tally.Scope NetworkMetrics 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 GetFdbErrorTags ¶
func GetGlobalTags ¶
func GetNamespace ¶
func GetSearchTags ¶
func GetSessionTags ¶
func InitializeMetrics ¶
func UpdateDbSizeMetrics ¶
Types ¶
type RequestEndpointMetadata ¶
type RequestEndpointMetadata struct {
// contains filtered or unexported fields
}
func GetGrpcEndPointMetadataFromFullMethod ¶
func GetGrpcEndPointMetadataFromFullMethod(ctx context.Context, fullMethod string, methodType string) RequestEndpointMetadata
func (*RequestEndpointMetadata) GetErrorTags ¶
func (r *RequestEndpointMetadata) GetErrorTags(source string, code string) map[string]string
func (*RequestEndpointMetadata) GetMethodName ¶
func (r *RequestEndpointMetadata) GetMethodName() string
func (*RequestEndpointMetadata) GetOkTags ¶
func (r *RequestEndpointMetadata) GetOkTags() map[string]string
func (*RequestEndpointMetadata) GetServiceType ¶
func (r *RequestEndpointMetadata) GetServiceType() string
type SpanMeta ¶
type SpanMeta struct {
// contains filtered or unexported fields
}
func NewSpanMeta ¶
func (*SpanMeta) CountErrorForScope ¶
func (*SpanMeta) CountOkForScope ¶
func (*SpanMeta) CountReceivedBytes ¶
func (*SpanMeta) FinishTracing ¶
func (*SpanMeta) FinishWithError ¶
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.