Skip to content

Send telemetry on unusual token refreshing #4315

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 22, 2025

Conversation

sergeibbb
Copy link
Member

@sergeibbb sergeibbb commented May 20, 2025

Description

It sends a telemetry events on on-usual token refreshing:

  1. when we try to refresh a non-github token that does not have expiration date.
  2. when we reject refreshing a token because we see that it's non-cloud token for a non-github integration

Checklist

  • I have followed the guidelines in the Contributing document
  • My changes follow the coding style of this project
  • My changes build without any errors or warnings
  • My changes have been formatted and linted
  • My changes include any required corresponding changes to the documentation (including CHANGELOG.md and README.md)
  • My changes have been rebased and squashed to the minimal number (typically 1) of relevant commits
  • My changes have a descriptive commit message with a short title, including a Fixes $XXX - or Closes #XXX - prefix to auto-close the issue that your PR addresses

sergeibbb added a commit that referenced this pull request May 20, 2025
sergeibbb added a commit that referenced this pull request May 20, 2025
…ons.

We skip refreshing a non-cloud sessions, because we expect it to be a
PAT. But now it's rather unexpected situation, so we send an event to be
aware about it.
(#4315)
sergeibbb added a commit that referenced this pull request May 20, 2025
…t once

Makes sure that we don't send them too frequently: once per session,
that's because we basically want to know if there are such cases at all
and how many, rather than knowing exact numbes.
(#4315)
@sergeibbb sergeibbb force-pushed the send-telemetry-on-unusual-token-refreshing branch from 774defa to 733710e Compare May 20, 2025 17:40
@sergeibbb sergeibbb requested a review from eamodio May 20, 2025 17:40
Copy link
Member

@eamodio eamodio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good once we change to just 1 event.

sergeibbb added a commit that referenced this pull request May 22, 2025
1. Sends a telemetry event for missing expirity dates.
2. Sends a telemetry events when we skip refreshing of a non-cloud
sessions.

We skip refreshing a non-cloud sessions, because we expect it to be a
PAT. But now it's rather unexpected situation, so we send an event to be
aware about it.

(#4315)
sergeibbb added a commit that referenced this pull request May 22, 2025
…t once

Makes sure that we don't send them too frequently: once per session,
that's because we basically want to know if there are such cases at all
and how many, rather than knowing exact numbes.
(#4315)
@sergeibbb sergeibbb force-pushed the send-telemetry-on-unusual-token-refreshing branch from 733710e to 956fe9e Compare May 22, 2025 10:58
sergeibbb added 2 commits May 22, 2025 13:05
1. Sends a telemetry event for missing expirity dates.
2. Sends a telemetry events when we skip refreshing of a non-cloud
sessions.

We skip refreshing a non-cloud sessions, because we expect it to be a
PAT. But now it's rather unexpected situation, so we send an event to be
aware about it.

(#4315)
…t once

Makes sure that we don't send them too frequently: once per session,
that's because we basically want to know if there are such cases at all
and how many, rather than knowing exact numbes.
(#4315)
@sergeibbb sergeibbb force-pushed the send-telemetry-on-unusual-token-refreshing branch from 956fe9e to b5b9a4b Compare May 22, 2025 11:06
@sergeibbb sergeibbb merged commit 89ba0e3 into main May 22, 2025
3 checks passed
sergeibbb added a commit that referenced this pull request May 22, 2025
1. Sends a telemetry event for missing expirity dates.
2. Sends a telemetry events when we skip refreshing of a non-cloud
sessions.

We skip refreshing a non-cloud sessions, because we expect it to be a
PAT. But now it's rather unexpected situation, so we send an event to be
aware about it.

(#4315)
@sergeibbb sergeibbb deleted the send-telemetry-on-unusual-token-refreshing branch May 22, 2025 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants