Skip to content
This repository was archived by the owner on Jul 31, 2023. It is now read-only.

Latest commit

 

History

History
31 lines (17 loc) · 976 Bytes

File metadata and controls

31 lines (17 loc) · 976 Bytes

Module oc_stat_transform

Function Index

parse_transform/2 oc_stat_transform is a parse transform that can detect oc_stat:record calls with constant measure names and generate remote measure module call from that.

Function Details

parse_transform/2

parse_transform(Forms, Options) -> any()

oc_stat_transform is a parse transform that can detect oc_stat:record calls with constant measure names and generate remote measure module call from that. At the run-time this means we don't have to do a lookup for the module name and if measure doesn't exist, {unknown_measure, Name} error will be thrown.