Repository navigation
Conversation
…lti-client metrics From running gotd in a long-running archiver (tglog): what surprised and how to handle it.
Document AuthLostKindOf, AUTH_KEY_DROP_* notifications, OnFrozen and FreezeState, and the new metric attribute, counter and log events (gotd/td#1934).
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Notes from running gotd in a long-running, multi-account archiver. Each one explains behaviour that already exists.
Update recovery (
helpers/updates-recovery.md):sendMessage,editMessageand similar calls reach only the calling session. WithoutUpdateHookyour handler sees them late. Even with it,updateShortSentMessagebecomesMessageEmpty. The page includes a middleware that rebuilds the message from the request.TrackChannel).channel-idle-timeout), so they arrive up to 15 minutes late. Covers how the official clients handle this and how to spot it in the metrics.Long-running clients (
advanced/long-running.md), lost authorization in practice:AUTH_KEY_UNREGISTERED;errgroup, one account'sAuthLostErrorstops every account;Observability (
advanced/observability.md):MeterProvider, separated with a scope attribute per client (otlp.promote_scope_metadatafor Prometheus);Facts checked against td main: the 15-minute idle timer, which resets on each channel update;
loadChannels;convertShortSentMessage; theUpdateShortSentMessagefields;MiddlewareFunc.yarn buildpasses.Banned, deleted and frozen accounts
Documents gotd/td#1934 (
AuthLostKindOf,AUTH_KEY_DROP_*,OnFrozen,FreezeState,gotd.client.account.restricted). Merge after #1934 is merged.