|
|
@ -79,6 +79,7 @@ var (
|
|
|
|
ConversationCreateFailedCounter prometheus.Counter
|
|
|
|
ConversationCreateFailedCounter prometheus.Counter
|
|
|
|
)
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewUserLoginCounter() {
|
|
|
|
func NewUserLoginCounter() {
|
|
|
|
if UserLoginCounter != nil {
|
|
|
|
if UserLoginCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -89,6 +90,7 @@ func NewUserLoginCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewUserRegisterCounter() {
|
|
|
|
func NewUserRegisterCounter() {
|
|
|
|
if UserRegisterCounter != nil {
|
|
|
|
if UserRegisterCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -99,6 +101,7 @@ func NewUserRegisterCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewSeqGetSuccessCounter() {
|
|
|
|
func NewSeqGetSuccessCounter() {
|
|
|
|
if SeqGetSuccessCounter != nil {
|
|
|
|
if SeqGetSuccessCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -109,6 +112,7 @@ func NewSeqGetSuccessCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewSeqGetFailedCounter() {
|
|
|
|
func NewSeqGetFailedCounter() {
|
|
|
|
if SeqGetFailedCounter != nil {
|
|
|
|
if SeqGetFailedCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -119,6 +123,7 @@ func NewSeqGetFailedCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewSeqSetSuccessCounter() {
|
|
|
|
func NewSeqSetSuccessCounter() {
|
|
|
|
if SeqSetSuccessCounter != nil {
|
|
|
|
if SeqSetSuccessCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -129,6 +134,7 @@ func NewSeqSetSuccessCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewSeqSetFailedCounter() {
|
|
|
|
func NewSeqSetFailedCounter() {
|
|
|
|
if SeqSetFailedCounter != nil {
|
|
|
|
if SeqSetFailedCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -139,6 +145,7 @@ func NewSeqSetFailedCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewApiRequestCounter() {
|
|
|
|
func NewApiRequestCounter() {
|
|
|
|
if ApiRequestCounter != nil {
|
|
|
|
if ApiRequestCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -149,6 +156,7 @@ func NewApiRequestCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewApiRequestSuccessCounter() {
|
|
|
|
func NewApiRequestSuccessCounter() {
|
|
|
|
if ApiRequestSuccessCounter != nil {
|
|
|
|
if ApiRequestSuccessCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -159,6 +167,7 @@ func NewApiRequestSuccessCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewApiRequestFailedCounter() {
|
|
|
|
func NewApiRequestFailedCounter() {
|
|
|
|
if ApiRequestFailedCounter != nil {
|
|
|
|
if ApiRequestFailedCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -169,6 +178,7 @@ func NewApiRequestFailedCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewGrpcRequestCounter() {
|
|
|
|
func NewGrpcRequestCounter() {
|
|
|
|
if GrpcRequestCounter != nil {
|
|
|
|
if GrpcRequestCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -179,6 +189,7 @@ func NewGrpcRequestCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewGrpcRequestSuccessCounter() {
|
|
|
|
func NewGrpcRequestSuccessCounter() {
|
|
|
|
if GrpcRequestSuccessCounter != nil {
|
|
|
|
if GrpcRequestSuccessCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -189,6 +200,7 @@ func NewGrpcRequestSuccessCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewGrpcRequestFailedCounter() {
|
|
|
|
func NewGrpcRequestFailedCounter() {
|
|
|
|
if GrpcRequestFailedCounter != nil {
|
|
|
|
if GrpcRequestFailedCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -199,6 +211,7 @@ func NewGrpcRequestFailedCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewSendMsgCount() {
|
|
|
|
func NewSendMsgCount() {
|
|
|
|
if SendMsgCounter != nil {
|
|
|
|
if SendMsgCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -209,6 +222,7 @@ func NewSendMsgCount() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewMsgInsertRedisSuccessCounter() {
|
|
|
|
func NewMsgInsertRedisSuccessCounter() {
|
|
|
|
if MsgInsertRedisSuccessCounter != nil {
|
|
|
|
if MsgInsertRedisSuccessCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -219,6 +233,7 @@ func NewMsgInsertRedisSuccessCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix its
|
|
|
|
func NewMsgInsertRedisFailedCounter() {
|
|
|
|
func NewMsgInsertRedisFailedCounter() {
|
|
|
|
if MsgInsertRedisFailedCounter != nil {
|
|
|
|
if MsgInsertRedisFailedCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -229,6 +244,7 @@ func NewMsgInsertRedisFailedCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewMsgInsertMongoSuccessCounter() {
|
|
|
|
func NewMsgInsertMongoSuccessCounter() {
|
|
|
|
if MsgInsertMongoSuccessCounter != nil {
|
|
|
|
if MsgInsertMongoSuccessCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -239,6 +255,7 @@ func NewMsgInsertMongoSuccessCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewMsgInsertMongoFailedCounter() {
|
|
|
|
func NewMsgInsertMongoFailedCounter() {
|
|
|
|
if MsgInsertMongoFailedCounter != nil {
|
|
|
|
if MsgInsertMongoFailedCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -249,6 +266,7 @@ func NewMsgInsertMongoFailedCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewMsgPullFromRedisSuccessCounter() {
|
|
|
|
func NewMsgPullFromRedisSuccessCounter() {
|
|
|
|
if MsgPullFromRedisSuccessCounter != nil {
|
|
|
|
if MsgPullFromRedisSuccessCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -259,6 +277,7 @@ func NewMsgPullFromRedisSuccessCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewMsgPullFromRedisFailedCounter() {
|
|
|
|
func NewMsgPullFromRedisFailedCounter() {
|
|
|
|
if MsgPullFromRedisFailedCounter != nil {
|
|
|
|
if MsgPullFromRedisFailedCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -269,6 +288,7 @@ func NewMsgPullFromRedisFailedCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewMsgPullFromMongoSuccessCounter() {
|
|
|
|
func NewMsgPullFromMongoSuccessCounter() {
|
|
|
|
if MsgPullFromMongoSuccessCounter != nil {
|
|
|
|
if MsgPullFromMongoSuccessCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -279,6 +299,7 @@ func NewMsgPullFromMongoSuccessCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewMsgPullFromMongoFailedCounter() {
|
|
|
|
func NewMsgPullFromMongoFailedCounter() {
|
|
|
|
if MsgPullFromMongoFailedCounter != nil {
|
|
|
|
if MsgPullFromMongoFailedCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -319,6 +340,7 @@ func NewPullMsgBySeqListTotalCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewSingleChatMsgRecvSuccessCounter() {
|
|
|
|
func NewSingleChatMsgRecvSuccessCounter() {
|
|
|
|
if SingleChatMsgRecvSuccessCounter != nil {
|
|
|
|
if SingleChatMsgRecvSuccessCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -329,6 +351,7 @@ func NewSingleChatMsgRecvSuccessCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewGroupChatMsgRecvSuccessCounter() {
|
|
|
|
func NewGroupChatMsgRecvSuccessCounter() {
|
|
|
|
if GroupChatMsgRecvSuccessCounter != nil {
|
|
|
|
if GroupChatMsgRecvSuccessCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -339,6 +362,7 @@ func NewGroupChatMsgRecvSuccessCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewWorkSuperGroupChatMsgRecvSuccessCounter() {
|
|
|
|
func NewWorkSuperGroupChatMsgRecvSuccessCounter() {
|
|
|
|
if WorkSuperGroupChatMsgRecvSuccessCounter != nil {
|
|
|
|
if WorkSuperGroupChatMsgRecvSuccessCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -359,6 +383,7 @@ func NewOnlineUserGauges() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewSingleChatMsgProcessSuccessCounter() {
|
|
|
|
func NewSingleChatMsgProcessSuccessCounter() {
|
|
|
|
if SingleChatMsgProcessSuccessCounter != nil {
|
|
|
|
if SingleChatMsgProcessSuccessCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -369,6 +394,7 @@ func NewSingleChatMsgProcessSuccessCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewSingleChatMsgProcessFailedCounter() {
|
|
|
|
func NewSingleChatMsgProcessFailedCounter() {
|
|
|
|
if SingleChatMsgProcessFailedCounter != nil {
|
|
|
|
if SingleChatMsgProcessFailedCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -379,6 +405,7 @@ func NewSingleChatMsgProcessFailedCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewGroupChatMsgProcessSuccessCounter() {
|
|
|
|
func NewGroupChatMsgProcessSuccessCounter() {
|
|
|
|
if GroupChatMsgProcessSuccessCounter != nil {
|
|
|
|
if GroupChatMsgProcessSuccessCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -389,6 +416,7 @@ func NewGroupChatMsgProcessSuccessCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewGroupChatMsgProcessFailedCounter() {
|
|
|
|
func NewGroupChatMsgProcessFailedCounter() {
|
|
|
|
if GroupChatMsgProcessFailedCounter != nil {
|
|
|
|
if GroupChatMsgProcessFailedCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -399,6 +427,7 @@ func NewGroupChatMsgProcessFailedCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewWorkSuperGroupChatMsgProcessSuccessCounter() {
|
|
|
|
func NewWorkSuperGroupChatMsgProcessSuccessCounter() {
|
|
|
|
if WorkSuperGroupChatMsgProcessSuccessCounter != nil {
|
|
|
|
if WorkSuperGroupChatMsgProcessSuccessCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -409,6 +438,7 @@ func NewWorkSuperGroupChatMsgProcessSuccessCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewWorkSuperGroupChatMsgProcessFailedCounter() {
|
|
|
|
func NewWorkSuperGroupChatMsgProcessFailedCounter() {
|
|
|
|
if WorkSuperGroupChatMsgProcessFailedCounter != nil {
|
|
|
|
if WorkSuperGroupChatMsgProcessFailedCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -419,6 +449,7 @@ func NewWorkSuperGroupChatMsgProcessFailedCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewMsgOnlinePushSuccessCounter() {
|
|
|
|
func NewMsgOnlinePushSuccessCounter() {
|
|
|
|
if MsgOnlinePushSuccessCounter != nil {
|
|
|
|
if MsgOnlinePushSuccessCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -429,6 +460,7 @@ func NewMsgOnlinePushSuccessCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewMsgOfflinePushSuccessCounter() {
|
|
|
|
func NewMsgOfflinePushSuccessCounter() {
|
|
|
|
if MsgOfflinePushSuccessCounter != nil {
|
|
|
|
if MsgOfflinePushSuccessCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -439,6 +471,7 @@ func NewMsgOfflinePushSuccessCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewMsgOfflinePushFailedCounter() {
|
|
|
|
func NewMsgOfflinePushFailedCounter() {
|
|
|
|
if MsgOfflinePushFailedCounter != nil {
|
|
|
|
if MsgOfflinePushFailedCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -449,6 +482,7 @@ func NewMsgOfflinePushFailedCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewConversationCreateSuccessCounter() {
|
|
|
|
func NewConversationCreateSuccessCounter() {
|
|
|
|
if ConversationCreateSuccessCounter != nil {
|
|
|
|
if ConversationCreateSuccessCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
@ -459,6 +493,7 @@ func NewConversationCreateSuccessCounter() {
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//nolint:promlinter //no idea to fix it
|
|
|
|
func NewConversationCreateFailedCounter() {
|
|
|
|
func NewConversationCreateFailedCounter() {
|
|
|
|
if ConversationCreateFailedCounter != nil {
|
|
|
|
if ConversationCreateFailedCounter != nil {
|
|
|
|
return
|
|
|
|
return
|
|
|
|