from typing import Sequence


def AppendToNamespace(namespace: str,
                      descriptors_to_append: Sequence[str]) -> str:
  """Appends a list of descriptors to a beam metric namespace."""
  if descriptors_to_append:
    return namespace + "." + ".".join(descriptors_to_append)
  return namespace