Skip to content

Commit 3d87839

Browse files
committed
Changed attribute label from 'container.name' to 'k8s.container.name'
1 parent 429713f commit 3d87839

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

receiver/k8sclusterreceiver/internal/container/containers.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const (
2424
containerKeyStatus = "container.status"
2525
containerKeyStatusReason = "container.status.reason"
2626
containerCreationTimestamp = "container.creation_timestamp"
27-
containerName = "container.name"
27+
containerName = "k8s.container.name"
2828
containerImage = "container.image.name"
2929

3030
// Values for container metadata

receiver/k8sclusterreceiver/watcher_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -334,7 +334,7 @@ func TestObjMetadata(t *testing.T) {
334334
"container.status": "running",
335335
"container.creation_timestamp": "0001-01-01T01:01:01Z",
336336
"container.image.name": "container-image-name",
337-
"container.name": "container-name",
337+
"k8s.container.name": "container-name",
338338
"k8s.pod.name": "test-pod-0",
339339
"k8s.pod.uid": "test-pod-0-uid",
340340
},

0 commit comments

Comments
 (0)