Closed wdhif closed 2 months ago
I've added a unit test showing both Entity ID and container ID in the same metric.
/merge
:steam_locomotive: MergeQueue
Pull request added to the queue.
This build is going to start soon! (estimated merge in less than 0s)
Use /merge -c
to cancel this operation!
/merge
:steam_locomotive: MergeQueue
Pull request added to the queue.
This build is going to start soon! (estimated merge in less than 0s)
Use /merge -c
to cancel this operation!
What does this PR do?
We would like customers to be able to retrieve container tags even when
DD_ENTITY_ID
is set. Currently the library does not send the container ID if the Entity ID is set.For those who do not want container tags, several alternatives are possible:
dd.internal.card=none
.DD_ORIGIN_DETECTION_ENABLED=false
to the application pod.Description of the Change
Remove checks for
DD_ENTITY_ID
when resolving container ID.Possible Drawbacks
Verification Process
To make sure that this is working as intended, create a new pod with the following manifest:
You should still be able to get the following metrics with container tags such as
container_id
:dummy_dsd_udp_python.increment
dummy_dsd_udp_python.decrement
We can see that, with an agent cardinality set as
high
:dd.internal.card:low
, we don't get container tags (only pod tags).dd.internal.card:low
, we don't get container tags (only pod tags).Review checklist (to be filled by reviewers)
changelog/
label attached. If applicable it should have thebackward-incompatible
label attached.do-not-merge/
label attached.kind/
andseverity/
labels attached at least.