Skip to content

Commit

Permalink
use structured logger
Browse files Browse the repository at this point in the history
  • Loading branch information
vasireddy99 committed Jul 21, 2022
1 parent a26c698 commit cc4bcc2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ func (c *CAdvisorMetric) Merge(src *CAdvisorMetric) {
for k, v := range src.fields {
if _, ok := c.fields[k]; ok {
c.logger.Debug(fmt.Sprintf("metric being merged has conflict in fields, src: %v, dest: %v \n", *src, *c))
c.logger.Debug(fmt.Sprintf("metric being merged has conflict in fields, src: %q, dest: %q \n", src.cgroupPath, c.cgroupPath))
c.logger.Debug("metric being merged has conflict in fields", zap.String("src", src.cgroupPath), zap.String("dest", c.cgroupPath))
if c.tags[ci.Timestamp] < src.tags[ci.Timestamp] {
continue
}
Expand Down
11 changes: 11 additions & 0 deletions unreleased/detect-pod.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# One of 'breaking', 'deprecation', 'new_component', 'enhancement', 'bug_fix'
change_type: breaking

# The name of the component, or a single word describing the area of concern, (e.g. filelogreceiver)
component: awscontainerinsightsreceiver

# A brief description of the change
note: "Pod Detection changes for K8's in containerd runtime"

# One or more tracking issues related to the change
issues: [N/A]

0 comments on commit cc4bcc2

Please sign in to comment.