Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Lightweight event dispatching for OCaml.

License

NotificationsYou must be signed in to change notification settings

leostera/telemetry

Repository files navigation

Telemetry is a lightweight library for dynamic dispatching of events, with afocus on metrics and instrumentation. Any OCaml library can use telemetry toemit events, then application code and other libraries can then hook into thoseevents and run custom handlers.

Getting Started

Install from Opam:

opam install telemetry

Create some events in your library or application code:

typeTelemetry.event +=Web_request_doneof {latency:int }Telemetry.emit (Web_request_done { latency=10 });

And now attach listeners:

Telemetry.attach (funev ->match evwith|Web_request_done{latency} ->Printf.printf"Web request took %sms" latency|_ ->());

About

Lightweight event dispatching for OCaml.

Resources

License

Code of conduct

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors2

  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp