Skip to content

Conversation

@weaversam8
Copy link
Member

Histograms already support arbitrary tags, but tick/2 and tock/1 didn't support them out of the box. This adds tick/3 to support ticking a histogram with custom tags.

@weaversam8 weaversam8 self-assigned this Nov 11, 2025
end)()),
?_assertEqual(2, (fun() ->
Tick = imetrics:tick(test3, #{tag => tag1}, second),
timer:sleep(2000),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we reduce this? Other cases use 5

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed to 5 in the latest commit

@weaversam8 weaversam8 force-pushed the feature/tagged-tick-tock branch from 2a4aea4 to 75d9768 Compare November 11, 2025 21:47
@weaversam8 weaversam8 merged commit 75d9768 into master Nov 12, 2025
2 checks passed
@weaversam8 weaversam8 deleted the feature/tagged-tick-tock branch November 12, 2025 14:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants