Skip to content

Commit

Permalink
chore: don't fail on external data resolution
Browse files Browse the repository at this point in the history
Signed-off-by: Wassim DHIF <[email protected]>
  • Loading branch information
wdhif committed Jan 9, 2025
1 parent 31fc81c commit deb9f0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions comp/dogstatsd/server/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ func (p *parser) parseMetricSample(message []byte) (dogstatsdMetricSample, error
rawExternalData := string(optionalField[len(externalDataPrefix):])
externalData, err = origindetection.ParseExternalData(rawExternalData)
if err != nil {
return dogstatsdMetricSample{}, fmt.Errorf("failed to parse e: field containing External Data %s: %v", rawExternalData, err)
log.Errorf("failed to parse e: field containing External Data %q: %v", rawExternalData, err)
}
}
}
Expand Down Expand Up @@ -279,7 +279,7 @@ func (p *parser) resolveLocalData(rawLocalData []byte) (origindetection.LocalDat
var err error
localData, err = origindetection.ParseLocalData(localDataString)
if err != nil {
log.Errorf("failed to parse c: field containing Local Data %s: %v", localDataString, err)
log.Errorf("failed to parse c: field containing Local Data %q: %v", localDataString, err)
}

// If the container ID is not set in the Local Data, we try to resolve it from the cgroupv2 inode.
Expand Down

0 comments on commit deb9f0e

Please sign in to comment.