Skip to content
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

Only cache metadata if successfully gathered #2979

Merged
merged 1 commit into from
Sep 9, 2024
Merged

Only cache metadata if successfully gathered #2979

merged 1 commit into from
Sep 9, 2024

Conversation

brancz
Copy link
Member

@brancz brancz commented Sep 5, 2024

No description provided.

@@ -98,7 +98,8 @@ var (
// MetadataProvider implementations support adding metadata to a labels.Builder.
type MetadataProvider interface {
// AddMetadata adds metadata to the provided labels.Builder for the given PID.
AddMetadata(pid libpf.PID, lb *labels.Builder)
// It returns whether the metadata is save to be cached.
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
// It returns whether the metadata is save to be cached.
// It returns whether the metadata can be safely cached.

@brancz brancz merged commit 4c977fb into main Sep 9, 2024
11 of 12 checks passed
@brancz brancz deleted the cache-meta branch September 9, 2024 08:57
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