-
Notifications
You must be signed in to change notification settings - Fork 586
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
feat: Extract main binary version from labels #2914
Conversation
pkg/model/labels.go
Outdated
LabelNameMappingRepository = "__mapping_repository__" | ||
LabelNameMappingCommit = "__mapping_commit__" |
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.
I would consider not making them reserved.
- It will probably affect the data locality:
__mapping_*
goes before__service_*
, therefore profiles of the same service but different versions can be stored far from each other. - Reserved labels are discarded in the
/ingest
endpoint. - Users may want to use them, esp.
commit
e.g., for comparison. Although, we could copy them with a public name.
Should we use service
instead of mapping
? mapping
is very specific to how we currently use it, not to its actual content.
Also, should we have a broader ref
(commit/branch/tag) instead of commit
? Github API is also using it. Or just version
?
That being said, I propose to name them service_repository
and service_version
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.
I will make the change, and yes we can use refs good idea this might be even easier for some people to integrate.
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.
Alright good catch on this. Let me know what you think now I've made some suggested changes.
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.
LGTM
This extract repository and commit from labels and inject them into the main binary mapping version.
This information can then be read using the pprof API.