Skip to content

Commit 9d84a68

Browse files
authored
fix: export ExcludedMetadataLabels so it can be extended in GEL (#16083)
1 parent 3888866 commit 9d84a68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎pkg/util/entry_size.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ func EntryTotalSize(entry *push.Entry) int {
2020
return len(entry.Line) + StructuredMetadataSize(entry.StructuredMetadata)
2121
}
2222

23-
var excludedStructuredMetadataLabels = []string{constants.LevelLabel}
23+
var ExcludedStructuredMetadataLabels = []string{constants.LevelLabel}
2424

2525
func StructuredMetadataSize(metas push.LabelsAdapter) int {
2626
size := 0
2727
for _, meta := range metas {
28-
if slices.Contains(excludedStructuredMetadataLabels, meta.Name) {
28+
if slices.Contains(ExcludedStructuredMetadataLabels, meta.Name) {
2929
continue
3030
}
3131
size += len(meta.Name) + len(meta.Value)

0 commit comments

Comments
 (0)