public Either <MeasurementError, MeasurementDto> GetByExternalId(long externalId)
 {
     return(TracedOperation.CallSync
            (
                _logger,
                MeasurementOperationType.GetIMeasurementById,
                externalId,
                () => _repository.FindByExternalId(externalId)
                .Map(MeasurementDto.FromDomain)
                .ToEither(MeasurementError.NotFoundByExternalId(externalId))
            ));
 }