Skip to content

Instantly share code, notes, and snippets.

@wullemsb
Created December 5, 2025 07:49
Show Gist options
  • Select an option

  • Save wullemsb/18045b28f6b0c6217c1be3b0f5c47584 to your computer and use it in GitHub Desktop.

Select an option

Save wullemsb/18045b28f6b0c6217c1be3b0f5c47584 to your computer and use it in GitHub Desktop.
_requestCounter.Add(1,
new KeyValuePair<string, object?>("endpoint", "/api/users"),
new KeyValuePair<string, object?>("method", "GET"),
new KeyValuePair<string, object?>("status", 200));
// Or use a taglist
var tags = new TagList
{
{ "endpoint", "/api/users" },
{ "method", "GET" },
{ "status", 200 }
};
_requestCounter.Add(1, tags);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment