Skip to content

Commit

Permalink
fix: export ExcludedMetadataLabels so it can be extended in GEL (#16083)
Browse files Browse the repository at this point in the history
  • Loading branch information
sherinabr authored Feb 4, 2025
1 parent 3888866 commit 9d84a68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/util/entry_size.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ func EntryTotalSize(entry *push.Entry) int {
return len(entry.Line) + StructuredMetadataSize(entry.StructuredMetadata)
}

var excludedStructuredMetadataLabels = []string{constants.LevelLabel}
var ExcludedStructuredMetadataLabels = []string{constants.LevelLabel}

func StructuredMetadataSize(metas push.LabelsAdapter) int {
size := 0
for _, meta := range metas {
if slices.Contains(excludedStructuredMetadataLabels, meta.Name) {
if slices.Contains(ExcludedStructuredMetadataLabels, meta.Name) {
continue
}
size += len(meta.Name) + len(meta.Value)
Expand Down

0 comments on commit 9d84a68

Please sign in to comment.