func (e Entity) Copy(cardinality collectors.TagCardinality) Entity {
	newEntity := e

	switch cardinality {
	case collectors.OrchestratorCardinality:
		newEntity.HighCardinalityTags = nil
	case collectors.LowCardinality:
		newEntity.HighCardinalityTags = nil
		newEntity.OrchestratorCardinalityTags = nil
	}

	return newEntity
}
// Copy returns a copy of the Entity containing only tags at the supplied
// cardinality.
Copy returns a copy of the Entity containing only tags at the supplied
cardinality.
// Copy returns a copy of the Entity containing only tags at the supplied // cardinality .
func (e Entity) Copy(cardinality collectors.TagCardinality) Entity {
	newEntity := e
	switch cardinality {
	case collectors.OrchestratorCardinality:
		newEntity.HighCardinalityTags = nil
	case collectors.LowCardinality:
		newEntity.HighCardinalityTags = nil
		newEntity.OrchestratorCardinalityTags = nil
	}
	return newEntity
}
func ( e Entity ) Copy ( cardinality collectors . TagCardinality ) Entity { newEntity := e switch cardinality { case collectors . OrchestratorCardinality : newEntity . HighCardinalityTags = nil case collectors . LowCardinality : newEntity . HighCardinalityTags = nil newEntity . OrchestratorCardinalityTags = nil } return newEntity }
Copy returns a copy of the Entity containing only tags at the supplied
cardinality.
Copy returns a copy of the Entity containing only tags at the supplied cardinality .