Skip to content

Commit

Permalink
Merge pull request #131 from jsuereth/wip-fix-enum-table
Browse files Browse the repository at this point in the history
(fix) Use id instead of value in enum table
  • Loading branch information
jsuereth authored Apr 24, 2024
2 parents 27aa9d9 + 88d5862 commit 664b96d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/weaver_semconv_gen/src/gen.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,8 +198,8 @@ impl<'a> AttributeView<'a> {
if let Some(v) = m.brief.as_ref() {
write!(out, "{}", v.trim())?;
} else {
// Use the value as the description if missing a brief.
write!(out, "{}", m.value)?;
// Use the id as the description if missing a brief.
write!(out, "{}", m.id)?;
}
// Stability.
write!(out, " | ")?;
Expand Down

0 comments on commit 664b96d

Please sign in to comment.