probes.h 2.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. #pragma once
  2. #include <library/cpp/lwtrace/all.h>
  3. #define DNSCACHELIB_PROVIDER(PROBE, EVENT, GROUPS, TYPES, NAMES) \
  4. PROBE(Created, GROUPS(), TYPES(), NAMES()) \
  5. PROBE(Destroyed, GROUPS(), TYPES(), NAMES()) \
  6. PROBE(AresInitFailed, GROUPS(), TYPES(), NAMES()) \
  7. PROBE(FamilyMismatch, \
  8. GROUPS(), \
  9. TYPES(int, bool, bool), \
  10. NAMES("family", "allowIpV4", "allowIpV6")) \
  11. PROBE(ResolveNullHost, \
  12. GROUPS(), \
  13. TYPES(TString, int), \
  14. NAMES("hostname", "family")) \
  15. PROBE(ResolveFromCache, \
  16. GROUPS(), \
  17. TYPES(TString, int, TString, TString, ui64), \
  18. NAMES("hostname", "family", "addrsV4", "addrsV6", "aCacheHits")) \
  19. PROBE(ResolveDone, \
  20. GROUPS(), \
  21. TYPES(TString, int, TString, TString), \
  22. NAMES("hostname", "family", "addrsV4", "addrsV6")) \
  23. PROBE(ResolveCacheTimeout, \
  24. GROUPS(), \
  25. TYPES(TString), \
  26. NAMES("hostname")) \
  27. PROBE(ResolveCacheNew, \
  28. GROUPS(), \
  29. TYPES(TString), \
  30. NAMES("hostname")) \
  31. /**/
  32. LWTRACE_DECLARE_PROVIDER(DNSCACHELIB_PROVIDER)