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 GetPreinitializedTagsFromFullMethod(fullMethod string, methodType string) 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
Constants ¶
View Source
const ( AdminServiceName = "tigrisdata.admin.v1.Admin" SystemTigrisTenantName = "system" )
View Source
const (
DefaultReportedTigrisTenant string = "unknown"
)
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(fullMethod string, methodType string) RequestEndpointMetadata
func (*RequestEndpointMetadata) GetPreInitializedTags ¶
func (g *RequestEndpointMetadata) GetPreInitializedTags() map[string]string
func (*RequestEndpointMetadata) GetSpecificErrorTags ¶
func (g *RequestEndpointMetadata) GetSpecificErrorTags(source string, code string) map[string]string
Click to show internal directories.
Click to hide internal directories.