Documentation ¶
Index ¶
- Constants
- Variables
- func GetFdbSpecificErrorTags(ctx context.Context, reqMethodName string, code string) map[string]string
- func GetFdbTags(ctx context.Context, reqMethodName string) map[string]string
- func GetGlobalTags() map[string]string
- func GetSearchTags(ctx context.Context, reqMethodName string) map[string]string
- func InitializeFdbScopes()
- func InitializeMetrics() io.Closer
- func InitializeRequestScopes()
- func InitializeSearchScopes()
- type RequestEndpointMetadata
- type SpanMeta
Constants ¶
View Source
const ( AdminServiceName = "tigrisdata.admin.v1.Admin" SystemTigrisTenantName = "system" DefaultReportedTigrisTenant = "unknown" )
View Source
const ( GrpcTracingServiceName = "tigris.grpc" KvTracingServiceName = "tigris.fdb.kv" TxManagerTracingServiceName = "tigris.tx.manager" )
Variables ¶
View Source
var ( FdbRequests tally.Scope FdbErrorRequests tally.Scope MeasuredFdbRequests = []string{ "Delete", "DeleteRange", "CreateTable", "DropTable", "SetVersionstampedValue", "SetVersionstampedKey", "Get", "Insert", "Replace", "Read", "ReadRange", "Update", "UpdateRange", "BeginTx", } )
View Source
var ( Reporter promreporter.Reporter // GRPC and HTTP related metric scopes Requests tally.Scope ErrorRequests tally.Scope RequestsRespTime tally.Scope // Fdb related metric scopes FdbMetrics tally.Scope // Search related metrics scopes SearchMetrics tally.Scope )
View Source
var ( SearchRequests tally.Scope SearchErrorRequests tally.Scope )
Functions ¶
func GetFdbSpecificErrorTags ¶
func GetGlobalTags ¶
func GetSearchTags ¶
func InitializeFdbScopes ¶
func InitializeFdbScopes()
func InitializeMetrics ¶
func InitializeRequestScopes ¶
func InitializeRequestScopes()
func InitializeSearchScopes ¶
func InitializeSearchScopes()
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) GetMethodName ¶
func (r *RequestEndpointMetadata) GetMethodName() string
func (*RequestEndpointMetadata) GetServiceType ¶
func (r *RequestEndpointMetadata) GetServiceType() string
func (*RequestEndpointMetadata) GetSpecificErrorTags ¶
func (r *RequestEndpointMetadata) GetSpecificErrorTags(source string, code string) map[string]string
func (*RequestEndpointMetadata) GetTags ¶
func (r *RequestEndpointMetadata) GetTags() map[string]string
type SpanMeta ¶
type SpanMeta struct {
// contains filtered or unexported fields
}
func NewSpanMeta ¶
func (*SpanMeta) GetSpanOptions ¶
func (s *SpanMeta) GetSpanOptions() []tracer.StartSpanOption
Click to show internal directories.
Click to hide internal directories.