@staticmethod
def encode(obj):
    """
        Defines the underlying format used during traces or services encoding.
        This method must be implemented and should only be used by the internal functions.
        """
    raise NotImplementedError
