-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Track usage by BotInstanceID #51540
Open
strideynet
wants to merge
7
commits into
master
Choose a base branch
from
strideynet/bot-instance-activity
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Track usage by BotInstanceID #51540
Conversation
This file contains 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
strideynet
changed the title
Strideynet/bot instance activity
Track usage by BotInstanceID
Jan 28, 2025
strideynet
force-pushed
the
strideynet/bot-instance-activity
branch
from
January 29, 2025 10:23
b3108ed
to
3d542ff
Compare
strideynet
added
do-not-merge
backport/branch/v16
backport/branch/v17
no-changelog
Indicates that a PR does not require a changelog entry
labels
Jan 29, 2025
strideynet
commented
Jan 29, 2025
espadolini
approved these changes
Jan 30, 2025
Comment on lines
+192
to
196
// Put submission lock in place - whilst this is by-name for | ||
// "user activity reports", it can be considered to protect resource | ||
// presence and bot instance activity too. | ||
debugPayload := fmt.Sprintf("%v %q", time.Now().Round(0), c.HostID) | ||
if err := svc.createUserActivityReportsLock(ctx, submitLockDuration, []byte(debugPayload)); err != nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could rename the method to be more general and move the comment to the lock name const instead?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
backport/branch/v16
backport/branch/v17
do-not-merge
no-changelog
Indicates that a PR does not require a changelog entry
size/md
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.
Part of https://github.com/gravitational/cloud/issues/11855
As per RFD0166 - https://github.com/gravitational/cloud/pull/11766
Blocked on https://github.com/gravitational/cloud/pull/11852 merging to keep prehog protos in sync.
Example submitted report:
Only backporting to v17/v16 as BotInstance functionality is not present in v15.