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

[PoC]of attribute ref renaming #277

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

MadVikingGod
Copy link
Contributor

This is a proof of concept on the viability of using renaming of attributes to duplicate the functionality of attribute embedding in open-telemetry/semantic-conventions#1264

This adds another field to the ref attributes that allows you to rename the attribute. This lets you import multiple copies of the same reference into an attribute group. as demonstrated in the test.

This is a Proof of Concept please don't merge.

} => {
let name;
let root_attr = self.root_attributes.get(r#ref);
if let Some(root_attr) = root_attr {
let mut attr_lineage = AttributeLineage::new(&root_attr.group_id);

if *prefix {
Copy link
Contributor

Choose a reason for hiding this comment

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

fyi: prefix means that attribute will be embedded i.e. having parent prefix in his name

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