func FmtDLQID(s string) string {
	return fmtGUID(s)
}
FmtDLQID formats a string to be used with TagDLQID
package common
import (
	"fmt"
	"regexp"
	"strings"
	"time"
	"github.com/uber-common/bark"
	"github.com/uber/cherami-server/common/metrics"
	"github.com/uber/cherami-thrift/.generated/go/admin"
	"github.com/uber/cherami-thrift/.generated/go/shared"
)
const TagErr = `err`
const TagDst = `destID`
const TagCnsm = `cnsmID`
const TagExt = `extnID`
const TagIn = `inhoID`
const TagOut = `outhID`
const TagCtrl = `ctrlID`
const TagFrnt = `frntID`
const TagStor = `storID`
const TagDstPth = `dstPth`
const TagCnsPth = `cnsPth`
const TagMsgID = `msgID`
const TagAckID = `ackID`
const TagHostIP = `hostIP`
const TagHostName = `hostName`
const TagDplName = `deploymentName`
const TagModule = `module`
const TagReconfigureID = `reconfigID`
const TagDLQID = `dlqID`
const TagReconfigureType = `reconfigType`
const TagExtentCacheSize = `extentCacheSize`
const TagInPutAckID = `inPutAckID`
const TagInPubConnID = `inPubConnID`
const TagInReplicaHost = `inReplicaHost`
const TagUpdateUUID = `updateUUID`
const TagRunnerName = "runnerName"
const TagService = "service"
const TagHostPort = "hostport"
const TagHostConnLimit = "hostconnlimit"
const TagTbSleep = "tokenbucketduration"
const TagDbPath = "dbpath"
const TagReplicator = "replicatorID"
const TagUnknowPth = `unknowPth`
const TagZoneName = `zoneName`
const TagDeploymentName = `deployment`
const TagTenancy = `tenancy`
const TagSlowDownSeconds = `slowDownSecs`
const TagCnsmID = `cnsmID`
const TagAddr = `addr`
const TagEvent = `event`
const TagState = `state`
const TagExtentStatus = `extStatus`
const TagCGExtentStatus = `cgExtStatus`
const TagSeq = `seq`
const TagSubject = `subject`
const TagResource = `resource`
const TagOperation = `operation`
const TagStatus = `status`
const checkFormatAndPanic = false  
var longLowercaseGUIDRegex = regexp.MustCompile(`^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$`)
var shortLowercaseGUIDRegex = regexp.MustCompile(`^[0-9a-f]{8}$`)
func fmtShortGUID(s string) string {
	s = ShortenGUIDString(strings.ToLower(s))
	if checkFormatAndPanic {
		if !shortLowercaseGUIDRegex.MatchString(s) {
			panic(fmt.Errorf("Format error on string %#q", s))
		}
	}
	return s
}
func fmtGUID(s string) string {
	s = strings.ToLower(s)
	if checkFormatAndPanic {
		if !longLowercaseGUIDRegex.MatchString(s) {
			panic(fmt.Errorf("Format error on string %#q", s))
		}
	}
	return s
}
func fmtNotificationType(t admin.NotificationType) (s string) {
	switch t {
	case admin.NotificationType_HOST:
		s = "host"
	case admin.NotificationType_CLIENT:
		s = "client"
	case admin.NotificationType_ALL:
		s = "all"
	default:
		s = "unknown"
	}
	return s
}
func FmtDst(s string) string {
	return fmtGUID(s)
}
func FmtCnsm(s string) string {
	return fmtGUID(s)
}
func FmtExt(s string) string {
	return fmtGUID(s)
}
func FmtIn(s string) string {
	return fmtShortGUID(s)
}
func FmtOut(s string) string {
	return fmtShortGUID(s)
}
func FmtCtrl(s string) string {
	return fmtShortGUID(s)
}
func FmtFrnt(s string) string {
	return fmtShortGUID(s)
}
func FmtStor(s string) string {
	return fmtShortGUID(s)
}
func FmtDstPth(s string) string {
	return s
}
func FmtCnsPth(s string) string {
	return s
}
func FmtMsgID(s string) string {
	return s
}
func FmtAckID(s string) string {
	return s
}
func FmtHostIP(s string) string {
	return s
}
func FmtHostName(s string) string {
	return s
}
func FmtDplName(s string) string {
	return s
}
func FmtReconfigureID(s string) string {
	return s
}
func FmtReconfigureType(s admin.NotificationType) string {
	return fmtNotificationType(s)
}
func FmtInPutAckID(s string) string {
	return s
}
func FmtInPubConnID(s int) string {
	return fmt.Sprintf("%v", s)
}
func FmtInReplicaHost(s string) string {
	return s
}