MCPcopy Create free account
hub / github.com/apple/foundationdb / getEncryptDbgTraceKeyWithTS

Function getEncryptDbgTraceKeyWithTS

flow/EncryptUtils.cpp:56–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56std::string getEncryptDbgTraceKeyWithTS(std::string_view prefix,
57 EncryptCipherDomainId domainId,
58 StringRef domainName,
59 EncryptCipherBaseKeyId baseCipherId,
60 int64_t refAfterTS,
61 int64_t expAfterTS) {
62 // Construct the TraceEvent field key ensuring its uniqueness and compliance to TraceEvent field validator and log
63 // parsing tools
64 boost::format fmter("%s.%lld.%s.%llu.%lld.%lld");
65 return boost::str(
66 boost::format(fmter % prefix % domainId % domainName.toString() % baseCipherId % refAfterTS % expAfterTS));
67}

Calls 3

strFunction · 0.85
formatFunction · 0.70
toStringMethod · 0.45

Tested by

no test coverage detected