SYMBOL_TYPE_NOSTAT = (1 << 11), /* Skip as statistical symbol */
SYMBOL_TYPE_IDEMPOTENT = (1 << 12), /* Symbol cannot change metric */
SYMBOL_TYPE_SQUEEZED = (1 << 13), /* Symbol is squeezed inside Lua */
+ SYMBOL_TYPE_TRIVIAL = (1 << 14), /* Symbol is trivial */
};
/**
* + `empty` if symbol can be called for empty messages
* + `skip` if symbol should be skipped now
* + `nostat` if symbol should be excluded from stat tokens
+ * + `trivial` symbol is trivial (e.g. no network requests)
* - `parent`: id of parent symbol (useful for virtual symbols)
*
* @return {number} id of symbol registered
if (strstr (str, "squeezed") != NULL) {
ret |= SYMBOL_TYPE_SQUEEZED;
}
+ if (strstr (str, "trivial") != NULL) {
+ ret |= SYMBOL_TYPE_TRIVIAL;
+ }
}
return ret;