TSRECORDS(3ts)
π TRAFFIC SERVER RECORDS(3ts) π
okay bestie, sit down, hydrate, and let me tell you about the Traffic Server Records β this is part of Apache Traffic Server's manual, and it's genuinely iconic. Traffic Server keeps a whole set of records, and those records cover both configuration values AND statistics. yes. both. one big happy family. π«Ά
β¨ NAME β¨
Traffic Server Records β traffic Server maintains a set of records which cover both configuration values and statistics π
πΈ SYNOPSIS πΈ
#include <ts/ts.h>
TSReturnCode TSMgmtStringCreate(TSRecordType rec_type, const char *name,
const TSMgmtString data_default, TSRecordUpdateType update_type,
TSRecordCheckType check_type, const char *check_regex,
TSRecordAccessType access_type)
TSReturnCode TSMgmtIntCreate(TSRecordType rec_type, const char *name,
const TSMgmtInt data_default, TSRecordUpdateType update_type,
TSRecordCheckType check_type, const char *check_regex,
TSRecordAccessType access_type)
π DESCRIPTION π
so, TSMgmtStringCreate() registers name as a configuration name and sets all its various properties. it's giving "official registration, no notes". β¨
and listen β if check_type is TS_RECORDCHECK_STR, then check_reg must point to a valid regular expression, because that regex is what gets used to check the string value. no regex, no vibes, it's a whole requirement. π§
π¨ okay this next part is the IMPORTANT one, fr fr. If a plugin uses a value from records.config that is not built in to Traffic Server, it must use this function β otherwise that value will be inaccessible and a warning for that name will be generated. so likeβ¦ use the function. don't be the warning. π
π RETURN VALUES π
TSMgmtStringCreate() and TSMgmtIntCreate() return TS_SUCCESS if the management value was created, and TS_ERROR if not. that's it, that's the whole vibe check. π
π₯ SEE ALSO π₯
π COPYRIGHT π
2026, dev@trafficserver.apache.org π
and that's the whole page, bestie β this one shipped as version 9.2 on Feb 12, 2026. go forth and register your records, you absolute main character. πππ¦
π¦ where this page comes from
- ubuntu noble: trafficserver-dev 9.2.3+ds-1+deb12u1ubuntu0.1 Β· Apache-2.0
- ubuntu questing: trafficserver-dev 9.2.5+ds-1ubuntu2.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms