class_docstr: Common task metrics
class_docstr_tok: ["Common","task","metrics"]
docstr: Record metrics will persist the text_length
docstr_tok: ["Record","metrics","will","persist","the","text_length"]
code: def record_metrics(cls, record: ServiceRecord) -> Dict[str, Any]:
      """Record metrics will persist the text_length"""
      return {"text_length": len(record.all_text())}
  
file_path: argilla/src/argilla/server/services/metrics/models.py
imports: from typing import Any, ClassVar, Dict, Generic, Iterable, List, Optional, TypeVar, Union
  from argilla.server.pydantic_v1 import BaseModel, Field
  from argilla.server.services.search.model import ServiceRecordsQuery
  from argilla.server.services.tasks.commons import ServiceRecord
label_desc: Use image node_id 1 for calling the CommonTasksMetrics obj's underlying member method code with example usage: obj.record_metrics(cls, record) and returns: dict