FUNCTION::JSON_SET_P(3stap)

✨ NAME ✨

function::json_set_prefix β€” sets the metric prefix, bestie πŸ’…

This one lives in the JSON Tapset, and it's genuinely one of the cutest little functions in the whole family. She does one thing and she does it well. Periodt.


🌸 SYNOPSIS 🌸

json_set_prefix:long(prefix:string)

πŸŽ€ ARGUMENTS πŸŽ€

  • prefix β€” the prefix name you wanna use, girl. That's it. That's the whole arg. Pass it in as a string and she'll take it from there. 🫢

πŸ’– DESCRIPTION πŸ’–

okay so here's the vibe: this function sets the "prefix", which is basically the name of the base of the metric hierarchy. Think of it as the little name tag at the very top of your whole metric tree β€” the root, the main character, the one everything else hangs off of. πŸ‘‘

Calling this function is optional. If you don't call it, no big deal, no drama β€” by default the name of the systemtap module is used instead. So she's got a fallback, she's self-sufficient, she's fine on her own. But if you want your metrics to have a specific base name? Then yeah, call her. πŸ’…

lowkey the whole thing is: want a custom prefix? call it. don't care? she'll use the module name. that's the entire lore. 🌈

πŸ¦‹ SEE ALSO πŸ¦‹


okay that's the whole page bestie, go forth and prefix your metrics ✨

SystemTap Tapset Reference, September 2026 edition β€” mwah, love that for us πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from