github gotd/td v0.173.0

one hour ago

Telemetry for one client and for fleets of thousands.

  • Trace of an update (#2032): with Options.TracerProvider, a pushed update starts a root span (Updates: <type>, started when the message was received, with the delivery delay); the updates engine runs the handler in an updates.handler span, so the requests the handler makes are in the same trace.
  • telegram/blackbox (#2033): a flight recorder of a client — the last requests (method, duration, RPC error type, flood wait) and connection events, no content. Dumped as JSON lines with a summary when the authorization is lost or the account is restricted. ~100 ns per request. telegram.MethodName names a request's method for middlewares.
  • telegram/fleet (#2035): many accounts as one — states (ready, flood_wait, disconnected, frozen, auth_lost, banned…), events with the black box record before an account is lost, outliers against the fleet's median, the worst accounts. Metrics without an account attribute (gotd.fleet.*), a Fleet row in _grafana/gotd.json and three alerts on shares of the fleet.

Full Changelog: v0.172.1...v0.173.0

Don't miss a new td release

NewReleases is sending notifications on new releases.