src/core/src/service_interfaces/TelemetryWriter.py [330:349]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @staticmethod
    def __get_event_file_path(folder_path):
        """ Returns the filename, generated from current timestamp in seconds, to be used to write an event. Eg: 1614111606855.json"""
        return os.path.join(folder_path, str(int(round(time.time() * 1000))) + ".json")

    @staticmethod
    def get_file_size(file_path):
        """ Returns the size of a file. Extracted out for mocking in unit test """
        return os.path.getsize(file_path)

    def __fetch_events_from_previous_file(self, file_path):
        """ Fetch contents from the file, return empty if file doesn't exist """
        try:
            with open(file_path, 'r') as file_handle:
                file_contents = file_handle.read()
                return json.loads(file_contents)
        except OSError as error:
            if error.errno == errno.ENOENT:
                return []
            else:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



src/extension/src/TelemetryWriter.py [234:253]:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    @staticmethod
    def __get_event_file_path(folder_path):
        """ Returns the filename, generated from current timestamp in seconds, to be used to write an event. Eg: 1614111606855.json"""
        return os.path.join(folder_path, str(int(round(time.time() * 1000))) + ".json")

    @staticmethod
    def get_file_size(file_path):
        """ Returns the size of a file. Extracted out for mocking in unit test """
        return os.path.getsize(file_path)

    def __fetch_events_from_previous_file(self, file_path):
        """ Fetch contents from the file """
        try:
            with open(file_path, 'r') as file_handle:
                file_contents = file_handle.read()
                return json.loads(file_contents)
        except OSError as error:
            if error.errno == errno.ENOENT:
                return []
            else:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -



