Skip to content

metrique-v0.1.1

Choose a tag to compare

@github-actions github-actions released this 05 Aug 16:21
· 150 commits to main since this release
e9b4791

Added

  • allow WithDimensions and ForceFlag support for entries
  • breaking change: clean up CloseValue/CloseValueRef. If you previously implemented CloseValueRef, you should now implement CloseValue for &'_ T
  • separate #[metrics(no_close)] from #[metrics(flatten_entry)].
    The old #[metrics(flatten_entry)] is now #[metrics(flatten_entry, no_close)].
  • allow using ForceFlag for CloseValue. This allows setting things like emf::HighResolution<Value>
  • support #[metrics(value)] and #[metrics(value(string))]. These reduce one of the main reasons to implement CloseValue directly: using a enum as a string value in your metric:
    #[metric(value(string))]
    enum ActionType {
      Create,
      Update,
      Delete
    }